Documentation ¶
Index ¶
- func NewAuthenticationError(messageKey string, message string) error
- func NewAuthorizationError(messageKey string, message string) error
- func NewIllegalInputError(messageKey string, message string) error
- func NewInternalError(messageKey string, message string) error
- func NewResourceNotFoundError(messageKey string, message string) error
- func WrapMultiErr(errorType string, messageKey string, message string, err error) error
- type ErrorType
- type POSError
- type POSMultiError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAuthenticationError ¶
func NewAuthorizationError ¶
func NewIllegalInputError ¶
func NewInternalError ¶
Types ¶
type ErrorType ¶
type ErrorType = string
const ( ErrorTypeInternalError ErrorType = "internal-error" ErrorTypeIllegalInputError ErrorType = "illegal-input-error" ErrorTypeAuthenticationError ErrorType = "authentication-error" ErrorTypeAuthorizationError ErrorType = "authorization-error" ErrorTypeResourceNotFoundError ErrorType = "resource-not-found-error" )
type POSMultiError ¶
type POSMultiError struct { *POSError // contains filtered or unexported fields }
func (POSMultiError) Children ¶
func (e POSMultiError) Children() []error
func (*POSMultiError) Error ¶
func (e *POSMultiError) Error() string
Click to show internal directories.
Click to hide internal directories.