package
0.1.10
Repository: https://github.com/kolbis/corego.git
Documentation: pkg.go.dev

# Functions

Annotate is used to add extra context to an existing error.
Annotatef is used to add extra context to an existing error.
Cause returns the cause of the given error.
Details returns information about the stack of errors wrapped by err, in the format: This is a terse alternative to ErrorStack as it returns a single line.
Errorf creates a new annotated error and records the location that the error is created.
ErrorStack returns a string representation of the annotated error.
IsApplicationError reports whether the error was created with NotSupportedf() or NewNotSupported().
IsBadRequestError reports whether the error was created with NewBadRequestErrorf() or NewBadRequestError().
IsDatabaseError reports whether the error was created with NewDatabaseErrorf() or NewDatabaseError().
IsForbiddenError reports whether the error was created with NewForbiddenErrorf() or NewForbiddenError().
IsInternalServerError reports whether the error was created with NewInternalServerErrorf() or NewInternalServerError().
IsMethodNotAllowedError reports whether the error was created with NewMethodNotAllowedError() or NewMethodNotAllowedf().
IsNotFoundError reports whether the error was created with NewNotFoundError() or NewApplicationErrorf().
IsTimeoutError reports whether the error was created with NewTimeoutError() or NewTimeoutErrorf().
IsUnauthorizedError reports whether the error was created with NewUnauthorizedErrorf() or NewUnauthorizedError().
Mask hides the underlying error type, and records the location of the masking.
Maskf masks the given error with the given format string and arguments (like fmt.Sprintf), returning a new error that maintains the error stack, but hides the underlying error type.
New will create a new application error.
NewApplicationError returns an error which wraps err and satisfies IsApplicationError().
NewApplicationErrorf returns an error which satisfies IsNotSupported().
NewBadRequestError returns an error which wraps err and satisfies IsBadRequestError().
NewBadRequestErrorf returns an error which satisfies IsBadRequestError().
NewDatabaseError returns an error which wraps err and satisfies IsDatabaseError().
NewDatabaseErrorf returns an error which satisfies IsDatabaseError().
NewForbiddenError returns an error which wraps err and satisfies IsForbiddenError().
NewForbiddenErrorf returns an error which satisfies IsForbiddenError().
NewInternalServerError returns an error which wraps err and satisfies IsInternalServerError().
NewInternalServerErrorf returns an error which satisfies IsInternalServerError().
NewMethodNotAllowedError returns an error which wraps err and satisfies IsMethodNotAllowedError().
NewMethodNotAllowedf returns an error which satisfies IsMethodNotAllowedError().
NewNotFoundError returns an error which wraps err and satisfies IsNotFoundError().
NewNotFoundErrorf returns an error which satisfies IsNotFoundError().
NewTimeoutError returns an error which wraps err and satisfies IsTimeoutError().
NewTimeoutErrorf returns an error which satisfies IsTimeoutError().
NewUnauthorizedError returns an error which wraps err and satisfies IsUnauthorizedError().
NewUnauthorizedErrorf returns an error which satisfies IsUnauthorizedError().
Trace adds the location of the Trace call to the stack.
Wrap changes the Cause of the error.
Wrapf changes the Cause of the error, and adds an annotation.