Documentation ¶
Index ¶
- func Chain(fns ...func() error) error
- func NewApiBadGatewayError(msg string) error
- func NewApiBadRequestError(msg string) error
- func NewApiError(code int, msg string) error
- func NewApiErrorWithoutMsg(code int) error
- func NewApiForbiddenError(msg string) error
- func NewApiInternalError(msg string) error
- func NewApiNotFoundError(msg string) error
- func NewApiUnauthorizedError(msg string) error
- func NewCodeAbortedError(msg string) error
- func NewCodeAlreadyExistsError(msg string) error
- func NewCodeCanceledError(msg string) error
- func NewCodeError(code int, msg string) error
- func NewCodeInternalError(msg string) error
- func NewCodeInvalidArgumentError(msg string) error
- func NewCodeNotFoundError(msg string) error
- func NewCodeUnavailableError(msg string) error
- func NewDefaultError(msg string) error
- func Wrap(err error, message string) error
- func Wrapf(err error, format string, args ...any) error
- type ApiError
- type AtomicError
- type BatchError
- type CodeError
- type CodeErrorResponse
- type SimpleMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApiBadGatewayError ¶
func NewApiBadRequestError ¶
func NewApiError ¶
func NewApiErrorWithoutMsg ¶
func NewApiForbiddenError ¶
func NewApiInternalError ¶
func NewApiNotFoundError ¶
func NewApiUnauthorizedError ¶
func NewCodeAbortedError ¶
func NewCodeCanceledError ¶
func NewCodeError ¶
func NewCodeInternalError ¶
func NewCodeNotFoundError ¶
func NewCodeUnavailableError ¶
func NewDefaultError ¶
Types ¶
type AtomicError ¶
type AtomicError struct {
// contains filtered or unexported fields
}
AtomicError defines an atomic error.
type BatchError ¶
type BatchError struct {
// contains filtered or unexported fields
}
A BatchError is an error that can hold multiple errors.
func (*BatchError) Add ¶
func (be *BatchError) Add(errs ...error)
Add adds errs to be, nil errors are ignored.
func (*BatchError) Err ¶
func (be *BatchError) Err() error
Err returns an error that represents all errors.
type CodeErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.