Documentation ¶
Overview ¶
Package errors intentionally mirrors the standard "errors" module. All packages on Koala should use this.
Index ¶
- func Cause(err error) error
- func Errorf(format string, args ...interface{}) error
- func IsIllegalArgumentError(err error) bool
- func IsIllegalStateError(err error) bool
- func IsNotAuthorizedError(err error) bool
- func IsNotFoundError(err error) bool
- func IsRelationshipError(err error) bool
- func IsRootError(e error) bool
- func New(m string) error
- func NewIllegalArgumentError(err error) error
- func NewIllegalStateError(err error) error
- func NewNotAuthorizedError(err error) error
- func NewNotFoundError(err error) error
- func NewRelationshipError(err error) error
- func Wrap(err error, m string) error
- type BaseError
- type IllegalArgumentError
- type IllegalStateError
- type NotAuthorizedError
- type NotFoundError
- type RelationshipError
- type RootError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsIllegalArgumentError ¶
IsIllegalArgumentError verifies if error is an IllegalStateError
func IsIllegalStateError ¶
IsIllegalStateError verifies if error is an IllegalStateError
func IsNotAuthorizedError ¶
IsNotAuthorizedError verifies if error is an NotAuthorizedError
func IsNotFoundError ¶
IsNotFoundError verifies if error is a NotFoundError
func IsRelationshipError ¶
IsRelationshipError verifies if error is an RelationshipError
func IsRootError ¶
IsRootError verifies if the error is a RuntimeError
func NewIllegalArgumentError ¶
NewIllegalArgumentError creates an IllegalArgumentError instance
func NewIllegalStateError ¶
NewIllegalStateError creates an IllegalStateError instance
func NewNotAuthorizedError ¶
NewNotAuthorizedError creates a NotAuthorizedError instance
func NewNotFoundError ¶
NewNotFoundError creates an error from NotFoundError
func NewRelationshipError ¶
NewRelationshipError creates an error from RelationshipError
Types ¶
type BaseError ¶
type BaseError struct {
// contains filtered or unexported fields
}
BaseError represents the base error
func NewBaseError ¶
NewBaseError creates a BaseError instance
type IllegalArgumentError ¶
type IllegalArgumentError struct {
BaseError
}
IllegalArgumentError represents an illegal argument error It implements the RuntimeError interface
type IllegalStateError ¶
type IllegalStateError struct {
BaseError
}
IllegalStateError represents an illegal state error It implements the RuntimeError interface
type NotAuthorizedError ¶
type NotAuthorizedError struct {
BaseError
}
NotAuthorizedError represents the error for not authorized logic
type NotFoundError ¶
type NotFoundError struct {
BaseError
}
NotFoundError represents a not found error It implements the RuntimeError interface
type RelationshipError ¶
type RelationshipError struct {
BaseError
}
RelationshipError represents a relationship error