package
1.9.27
Repository: https://github.com/gzorm/common.git
Documentation: pkg.go.dev

# Functions

Chain runs funs one by one until an error occurred.
In checks if the given err is one of errs.
NewAlreadyExistsError returns status error with AlreadyExists error code.
NewApiBadGatewayError returns Api Error with http bad gateway status code.
NewApiBadRequestError returns Api Error with http bad request status code.
NewApiError returns Api Error.
NewApiErrorWithoutMsg returns Api Error without message.
NewApiForbiddenError returns Api Error with http forbidden status code.
NewApiInternalError returns Api Error with http internal error status code.
NewApiNotFoundError returns Api Error with http not found status code.
NewApiUnauthorizedError returns Api Error with http unauthorized status code.
NewCodeAbortedError returns Code Error with custom aborted error code.
NewCodeAlreadyExistsError returns Code Error with custom already exists error code.
NewCodeCanceledError returns Code Error with custom cancel error code.
NewCodeError returns a code error.
NewCodeInternalError returns Code Error with custom internal error code.
NewCodeInvalidArgumentError returns Code Error with custom invalid argument error code.
NewCodeNotFoundError returns Code Error with custom not found error code.
NewCodeUnavailableError returns Code Error with custom unavailable error code.
No description provided by the author
NewInternalError returns status error with Internal error code.
NewInvalidArgumentError returns status error with InvalidArgument error code.
NewNotFoundError returns status error with NotFound error code.
NewResourceExhaustedError returns status error with ResourceExhausted error code.
NewUnauthenticatedError returns status error with Unauthenticated error code.
Wrap returns an error that wraps err with given message.
Wrapf returns an error that wraps err with given format and args.

# Structs

ApiError is error with http status codes.
AtomicError defines an atomic error.
No description provided by the author
CodeError is error with custom error code.
No description provided by the author
No description provided by the author