Documentation ¶
Overview ¶
Package errors defines error types that are used in several modules
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrFilesystem occurs when a filesystem interaction fails. ErrFilesystem = errors.New("something went wrong when interacting with the fs") // ErrCouldNotDownload occurs when a download fails. ErrCouldNotDownload = errors.New("could not download requested ressource") // ErrNotFound occurs when a resource could not be found. ErrNotFound = errors.New("the resource cannot be found") )
Functions ¶
func NewBadRequestError ¶
NewBadRequestError instantiates a ErrBadRequest with the specified message.
Types ¶
type ErrBadRequest ¶
type ErrBadRequest struct {
// contains filtered or unexported fields
}
ErrBadRequest occurs when a method has been passed an inappropriate argument.
func (*ErrBadRequest) Error ¶
func (e *ErrBadRequest) Error() string
Click to show internal directories.
Click to hide internal directories.