Documentation ¶
Overview ¶
Package slugerr provides custom error types for the openapi HTTP API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorTypeUnknown defines the unknown type of error. ErrorTypeUnknown = ErrorType{"unknown"} // ErrorTypeAuthorization defines the authorization type of error. ErrorTypeAuthorization = ErrorType{"authorization"} // ErrorTypeIncorrectInput defines the incorrect input type of error. ErrorTypeIncorrectInput = ErrorType{"incorrect-input"} )
Functions ¶
This section is empty.
Types ¶
type ErrorType ¶
type ErrorType struct {
// contains filtered or unexported fields
}
ErrorType defines the type of error.
type SlugError ¶
type SlugError struct {
// contains filtered or unexported fields
}
SlugError defines error for slug.
func NewAuthorizationError ¶
NewAuthorizationError creates a new authorization error.
func NewIncorrectInputError ¶
NewIncorrectInputError creates a new incorrect input error.
func NewSlugError ¶
NewSlugError creates a new slug error.
Click to show internal directories.
Click to hide internal directories.