Documentation ¶
Overview ¶
Package errors provides facilities with error handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CompositeError ¶
func (*CompositeError) Error ¶
func (err *CompositeError) Error() string
type ConflictError ¶
type ConflictError ValidationError
func (*ConflictError) Error ¶
func (err *ConflictError) Error() string
type HTTP ¶
HTTP represents an HTTP error. It implements the error interface.
Each HTTP error has a Code and a message explaining what went wrong.
func (*HTTP) StatusCode ¶
type MultiError ¶
type MultiError struct {
// contains filtered or unexported fields
}
func NewMultiError ¶
func NewMultiError(errs ...error) *MultiError
func (*MultiError) Add ¶
func (m *MultiError) Add(err error)
func (*MultiError) Error ¶
func (m *MultiError) Error() string
func (*MultiError) Len ¶
func (m *MultiError) Len() int
func (*MultiError) ToError ¶
func (m *MultiError) ToError() error
type NotAuthorizedError ¶
type NotAuthorizedError ValidationError
func (*NotAuthorizedError) Error ¶
func (err *NotAuthorizedError) Error() string
type ValidationError ¶
type ValidationError struct {
Message string
}
ValidationError is an error implementation used whenever a validation failure occurs.
func (*ValidationError) Error ¶
func (err *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.