Documentation ¶
Overview ¶
Package errs contains declarations of domain-level errors wrappers and methods to map them for client identification of the error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrNotFound = errors.New("resource not found") ErrExists = errors.New("resource already exists") ErrIfNotBool = errors.New("if must return a boolean value") )
Standard errors.
Functions ¶
This section is empty.
Types ¶
type ErrActionNotSupported ¶
type ErrActionNotSupported string
ErrActionNotSupported indicates that the action is not supported by the tracker.
func (ErrActionNotSupported) Error ¶
func (e ErrActionNotSupported) Error() string
Error returns the string representation of the error.
type ErrGithubAPI ¶
type ErrGithubAPI struct { ResponseStatus int `json:"-"` Message string `json:"message"` Errors []struct { Code string `json:"code"` Message string `json:"message"` Resource string `json:"resource"` } `json:"errors"` }
ErrGithubAPI describes any error responded by the Github API.
func (ErrGithubAPI) Error ¶
func (e ErrGithubAPI) Error() string
Error returns the string representation of the error.
type ErrMethodParseFailed ¶
type ErrMethodParseFailed string
ErrMethodParseFailed indicates that the Request contains an invalid path to the method.
func (ErrMethodParseFailed) Error ¶
func (e ErrMethodParseFailed) Error() string
Error returns the string representation of the error.
type ErrTrackerNotRegistered ¶
type ErrTrackerNotRegistered string
ErrTrackerNotRegistered indicates about the call to the tracker, that was not registered by the Dispatcher.
func (ErrTrackerNotRegistered) Error ¶
func (e ErrTrackerNotRegistered) Error() string
Error returns the string representation of the error.
type ErrTrackerRegistered ¶
type ErrTrackerRegistered string
ErrTrackerRegistered indicates that the attempt to register a new tracker handler has been failed as this tracker is already registered in the Manager.
func (ErrTrackerRegistered) Error ¶
func (e ErrTrackerRegistered) Error() string
Error returns the string representation of the error.