Categorygithub.com/wego/pkg/errors
modulepackage
0.2.2
Repository: https://github.com/wego/pkg.git
Documentation: pkg.go.dev

# Functions

CaptureError captures an error to sentry & set level as error.
CaptureWarning captures an error to sentry & set level as warning.
Code return HTTP status code of the error.
New construct a new error, default having kind Unexpected.
WrapGORMError wraps an GORM error into our error such as adding errors.Kind.

# Constants

error kinds.
error kinds.
error kinds.
error kinds.
NotImplemented The requested action/resource is not implemented.
error kinds.
NotSupported THe requested action/resource is not supported.
Retry indicate an error we need to retry the action.
sentry keys.
sentry keys.
sentry keys.
error kinds.
error kinds.
error kinds.
error kinds.

# Variables

ErrNotImplemented the requested action/resource is not implemented.
ErrNotModified the requested action/resource is not modified.
ErrNotSupported the requested action/resource is not supported.

# Structs

Error custom error.
FieldError is wrapper of validator.FieldError.

# Type aliases

Kind error kind.
Op : operation.