Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrTraitForbidden = errorx.RegisterTrait("forbidden") ErrTraitAuthorizationIssue = errorx.RegisterTrait("auth") ErrTraitEntityNotFound = errorx.RegisterTrait("not_found") ErrTraitValidationError = errorx.RegisterTrait("validation") AppErrors = errorx.NewNamespace("app") UnexpectedError = AppErrors.NewType("unexpected") ErrGenericForbidden = AppErrors.NewType("generic_forbidden", ErrTraitForbidden).New("access to this resource is forbidden") ErrDbError = AppErrors.NewType("db_error") ValidationError = AppErrors.NewType("validation", ErrTraitValidationError) )
Functions ¶
func IsNotFoundError ¶
func WrapUnexpectedAppError ¶
func WrapUnexpectedDBError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.