Documentation
¶
Index ¶
- Constants
- func ToStringSlice(errs ...error) []string
- type AuthorizeError
- type IHandledError
- func NewAuthorize(errs ...error) IHandledError
- func NewAuthorizeError(message string, errs ...error) IHandledError
- func NewInternal(errs ...error) IHandledError
- func NewInternalError(message string, errs ...error) IHandledError
- func NewNotFound(errs ...error) IHandledError
- func NewNotFoundError(message string, errs ...error) IHandledError
- func NewValidation(errs ...error) IHandledError
- func NewValidationError(message string, errs ...error) IHandledError
- type InternalError
- type NotFoundError
- type ValidationError
Constants ¶
View Source
const AuthorizeMessage = "unauthorized request"
View Source
const InternalMessage = "internal server error"
View Source
const NotFoundMessage = "data not found"
View Source
const ValidationMessage = "invalid data or parameters"
Variables ¶
This section is empty.
Functions ¶
func ToStringSlice ¶
Types ¶
type AuthorizeError ¶
type AuthorizeError struct {
// contains filtered or unexported fields
}
func (AuthorizeError) StatusCode ¶
func (AuthorizeError) StatusCode() int
type IHandledError ¶
func NewAuthorize ¶
func NewAuthorize(errs ...error) IHandledError
func NewAuthorizeError ¶
func NewAuthorizeError(message string, errs ...error) IHandledError
func NewInternal ¶
func NewInternal(errs ...error) IHandledError
func NewInternalError ¶
func NewInternalError(message string, errs ...error) IHandledError
func NewNotFound ¶
func NewNotFound(errs ...error) IHandledError
func NewNotFoundError ¶
func NewNotFoundError(message string, errs ...error) IHandledError
func NewValidation ¶
func NewValidation(errs ...error) IHandledError
func NewValidationError ¶
func NewValidationError(message string, errs ...error) IHandledError
type InternalError ¶
type InternalError struct {
// contains filtered or unexported fields
}
func (InternalError) StatusCode ¶
func (InternalError) StatusCode() int
func (InternalError) String ¶
func (err InternalError) String() string
type NotFoundError ¶
type NotFoundError struct {
// contains filtered or unexported fields
}
func (NotFoundError) StatusCode ¶
func (NotFoundError) StatusCode() int
type ValidationError ¶
type ValidationError struct {
// contains filtered or unexported fields
}
func (ValidationError) StatusCode ¶
func (ValidationError) StatusCode() int
Click to show internal directories.
Click to hide internal directories.