Documentation
¶
Index ¶
- type Error
- func AsAppError(err error) *Error
- func BadRequestError(msg string) *Error
- func ConflictError(msg string) *Error
- func ForbiddenError(msg string) *Error
- func GoneError(msg string, context map[string]any) *Error
- func InternalError(msg string, cause error) *Error
- func NotFoundError(msg string) *Error
- func UnavailableError(msg string) *Error
- type ErrorResponse
- type ErrorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
func AsAppError ¶
func BadRequestError ¶
func ConflictError ¶
func ForbiddenError ¶
func GoneError ¶
GoneError reports a resource that existed but has ended; context details tell the client why.
func InternalError ¶
func NotFoundError ¶
func UnavailableError ¶
func (*Error) HTTPStatus ¶
func (*Error) ToResponse ¶
func (e *Error) ToResponse() ErrorResponse
type ErrorResponse ¶
Click to show internal directories.
Click to hide internal directories.