Documentation
¶
Overview ¶
Package errors defines the common errors
Package errors defines the common errors ¶
Package errors defines the common errors ¶
Package errors defines the common errors ¶
Package errors defines the common errors
Index ¶
- func IsAlreadyExistsError(err error) bool
- func IsArgumentError(err error) bool
- func IsArgumentNilError(err error) bool
- func IsNotFoundError(err error) bool
- func IsUnknownError(err error) bool
- func NewAlreadyExistsError() error
- func NewAlreadyExistsErrorWithError(err error) error
- func NewArgumentError(argumentName, message string) error
- func NewArgumentErrorWithError(argumentName, message string, err error) error
- func NewArgumentNilError(argumentName, message string) error
- func NewArgumentNilErrorWithError(argumentName, message string, err error) error
- func NewNotFoundError() error
- func NewNotFoundErrorWithError(err error) error
- func NewUnknownError(message string) error
- func NewUnknownErrorWithError(message string, err error) error
- type AlreadyExistsError
- type ArgumentError
- type ArgumentNilError
- type NotFoundError
- type UnknownError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyExistsError ¶ added in v0.6.0
IsAlreadyExistsError indicates whether the error is of type AlreadyExistsError err: The error to check whethe it is of AlreadyExistsError type Returns true if the given err is of type AlreadyExistsError, otherwise return false
func IsArgumentError ¶ added in v0.0.5
IsArgumentError indicates whether the error is of type ArgumentError err: The error to check whethe it is of ArgumentError type Returns true if the given err is of type ArgumentError, otherwise return false
func IsArgumentNilError ¶ added in v0.0.5
IsArgumentNilError indicates whether the error is of type ArgumentNilError err: The error to check whethe it is of ArgumentNilError type Returns true if the given err is of type ArgumentNilError, otherwise return false
func IsNotFoundError ¶ added in v0.6.0
IsNotFoundError indicates whether the error is of type NotFoundError err: The error to check whethe it is of NotFoundError type Returns true if the given err is of type NotFoundError, otherwise return false
func IsUnknownError ¶ added in v0.6.0
IsUnknownError indicates whether the error is of type UnknownError err: The error to check whethe it is of UnknownError type Returns true if the given err is of type UnknownError, otherwise return false
func NewAlreadyExistsError ¶ added in v0.6.0
func NewAlreadyExistsError() error
NewAlreadyExistsError creates a new AlreadyExistsError error Returns the newly created error
func NewAlreadyExistsErrorWithError ¶ added in v0.6.0
NewAlreadyExistsErrorWithError creates a new AlreadyExistsError error err: The error to wrap with the new created error Returns the newly created error
func NewArgumentError ¶
NewArgumentError creates a new ArgumentError error argumentName: The argument name message: The message to include Returns the newly created error
func NewArgumentErrorWithError ¶ added in v0.0.6
NewArgumentErrorWithError creates a new ArgumentError error argumentName: The argument name message: The message to include err: The error to wrap with the new created error Returns the newly created error
func NewArgumentNilError ¶
NewArgumentNilError creates a new ArgumentNilError error argumentName: The argument name message: The message to include Returns the newly created error
func NewArgumentNilErrorWithError ¶ added in v0.0.6
NewArgumentNilErrorWithError creates a new ArgumentNilError error argumentName: The argument name message: The message to include err: The error to wrap with the new created error Returns the newly created error
func NewNotFoundError ¶ added in v0.6.0
func NewNotFoundError() error
NewNotFoundError creates a new NotFoundError error Returns the newly created error
func NewNotFoundErrorWithError ¶ added in v0.6.0
NewNotFoundErrorWithError creates a new NotFoundError error err: The error to wrap with the new created error Returns the newly created error
func NewUnknownError ¶ added in v0.6.0
NewUnknownError creates a new UnknownError error Returns the newly created error
func NewUnknownErrorWithError ¶ added in v0.6.0
NewUnknownErrorWithError creates a new UnknownError error message: The additional message to include err: The error to wrap with the new created error Returns the newly created error
Types ¶
type AlreadyExistsError ¶ added in v0.6.0
type AlreadyExistsError struct {
Err error
}
AlreadyExistsError indicates that the with the given information already exists
func (AlreadyExistsError) Error ¶ added in v0.6.0
func (e AlreadyExistsError) Error() string
Error returns message for the AlreadyExistsError error type Returns the formatted error nessage
func (AlreadyExistsError) Unwrap ¶ added in v0.6.0
func (e AlreadyExistsError) Unwrap() error
Unwrap returns the err if provided through NewAlreadyExistsErrorWithError function, otherwise returns nil Returns the unwrapped error if previosuly provided through NewAlreadyExistsErrorWithError, otherwise return false
type ArgumentError ¶
ArgumentError indicates that the provided input argument is invalid.
func (ArgumentError) Error ¶
func (e ArgumentError) Error() string
Error returns message for the TenantAlreadyExistsError error type Returns the formatted error nessage
func (ArgumentError) Unwrap ¶ added in v0.0.5
func (e ArgumentError) Unwrap() error
Unwrap returns the err if provided through NewArgumentErrorWithError function, otherwise returns nil Returns the unwrapped error if previosuly provided through NewArgumentErrorWithError, otherwise return false
type ArgumentNilError ¶
ArgumentNilError indicates that the provided input argument is invalid.
func (ArgumentNilError) Error ¶
func (e ArgumentNilError) Error() string
Error returns message for the TenantAlreadyExistsError error type Returns the formatted error nessage
func (ArgumentNilError) Unwrap ¶ added in v0.0.5
func (e ArgumentNilError) Unwrap() error
Unwrap returns the err if provided through NewArgumentNilErrorWithError function, otherwise returns nil Returns the unwrapped error if previosuly provided through NewArgumentNilErrorWithError, otherwise return false
type NotFoundError ¶ added in v0.6.0
type NotFoundError struct {
Err error
}
NotFoundError indicates that the with the given email address does not exist
func (NotFoundError) Error ¶ added in v0.6.0
func (e NotFoundError) Error() string
Error returns message for the NotFoundError error type Returns the formatted error nessage
func (NotFoundError) Unwrap ¶ added in v0.6.0
func (e NotFoundError) Unwrap() error
Unwrap returns the err if provided through NotFoundError function, otherwise returns nil Returns the unwrapped error if previosuly provided through NotFoundError, otherwise return false
type UnknownError ¶ added in v0.6.0
UnknownError indicates that an unknown error has happened
func (UnknownError) Error ¶ added in v0.6.0
func (e UnknownError) Error() string
Error returns message for the UnknownError error type Returns the formatted error nessage
func (UnknownError) Unwrap ¶ added in v0.6.0
func (e UnknownError) Unwrap() error
Unwrap returns the err if provided through NewUnknownErrorWithError function, otherwise returns nil Returns the unwrapped error if previosuly provided through NewUnknownErrorWithError, otherwise return false