Documentation ¶
Overview ¶
Package err define error type of uexky
Use uerr.New and uerr.Errorf to create custom errors. Use uerr.Wrap and uerr.Wrapf to wrap extern errors. To transit error in this project, just use errors.Wrap and errors.Wrapf, the wrapped message is function name and parameters. Follow this guideline, we will get clear error stack.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ErrorType ¶
type ErrorType string
const ( UnknownError ErrorType = "" ParamsError ErrorType = "ParamsError" AuthError ErrorType = "AuthError" PermissionError ErrorType = "PermissionError" NotFoundError ErrorType = "NotFoundError" RateLimitError ErrorType = "RateLimitError" InternalError ErrorType = "InternalError" // External Services PostgresError ErrorType = "PostgresError" RedisError ErrorType = "RedisError" MailgunError ErrorType = "MailgunError" )
func ExtractErrorType ¶
Click to show internal directories.
Click to hide internal directories.