# Functions
IsBadGateway indicates whether the error points to a bad gateway which occurred from a service-to-service communication.
IsBadRequest indicates whether the error points to a bad request.
IsConflict indicates whether the error points to a resource conflict.
IsErrorType verifies if the provided error matches the provided error type.
IsForbidden indicates whether the error points to forbidden access to a resource.
IsMethodNotAllowed indicates whether the error points to a method not allowed error.
IsNotAcceptable indicates whether the error points to a not acceptable error.
IsNotFound indicates whether the error points to resource not found.
IsNotImplemented indicates whether the error points to method that has not been implemented yet.
IsPreconditionFailed indicates whether the error points to a precondition failure.
IsRequestEntityTooLarge indicates whether the request payload was too large.
IsRequestTimeout indicates whether the error points to a request timeout.
IsUnauthorized indicates whether the error points to an unauthorized access.
IsUnhandled indicates whether the error points to unhandled server-side error.
MergeErrors is useful to put together multiple errors in one.
No description provided by the author
New creates a new Error by the given title, message and error.
NewBadGateway creates a new `Error` and sets the error code to 502 Bad Gateway (ErrorType_BAD_GATEWAY) and title to the default for that status.
NewBadRequest creates a new `Error` and sets the error code to 400 Bad Request (ErrorType_BAD_REQUEST) and title to the default for that status.
NewConflict creates a new `Error` and sets the error code to 409 Conflict (ErrorType_CONFLICT) and title to the default for that status.
NewForbidden creates a new `Error` and sets the error code to 403 Forbidden (ErrorType_FORBIDDEN) and title to the default for that status.
NewMethodNotAllowed creates a new `Error` and sets the error code to 405 Method Not Allowed (ErrorType_METHOD_NOT_ALLOWED) and title to the default for that status.
NewNotAcceptable creates a new `Error` and sets the error code to 406 Not Acceptable (ErrorType_NOT_ACCEPTABLE) and title to the default for that status.
NewNotFound creates a new `Error` and sets the error code to 404 Not Found (ErrorType_NOT_FOUND) and title to the default for that status.
NewNotImplemented creates a new `Error` and sets the error code to 501 Not Implemented (ErrorType_NOT_IMPLEMENTED) and title to the default for that status.
NewPreconditionFailed creates a new `Error` and sets the error code to 412 Precondition Failed (ErrorType_PRECONDITION_FAILED) and title to the default for that status.
NewRequestEntityTooLarge creates a new `Error` and sets the error code to 413 Request Entity Too Large (ErrorType_REQUEST_ENTITY_TOO_LARGE) and title to the default for that status.
NewRequestTimeout creates a new `Error` and sets the error code to 408 Request Timeout (ErrorType_REQUEST_TIMEOUT) and title to the default for that status.
NewUnauthorized creates a new `Error` and sets the error code to 401 Unauthorized (ErrorType_UNAUTHORIZED) and title to the default for that status.
NewUnhandled creates a new `Error` and sets the error code to 500 Unhandled (ErrorType_UNHANDLED) and title to the default for that status.
Wrap attempts to guess the error type based on the `Error()` message from the provided error.
WrapBadGateway wraps an error and sets the error code to 502 Bad Gateway (ErrorType_BAD_GATEWAY) and title to the default for that status.
WrapBadGatewayf wraps an error and sets the error code to 502 Bad Gateway (ErrorType_BAD_GATEWAY) using as message the string format result of `format` and `args.
WrapBadRequest wraps an error and sets the error code to 400 Bad Request (ErrorType_BAD_REQUEST) and title to the default for that status.
WrapBadRequestf wraps an error and sets the error code to 400 Bad Request (ErrorType_BAD_REQUEST) using as message the string format result of `format` and `args.
WrapConflict wraps an error and sets the error code to 409 Conflict (ErrorType_CONFLICT) and title to the default for that status.
WrapConflictf wraps an error and sets the error code to 409 Conflict (ErrorType_CONFLICT) using as message the string format result of `format` and `args.
No description provided by the author
WrapForbidden wraps an error and sets the error code to 403 Forbidden (ErrorType_FORBIDDEN) and title to the default for that status.
WrapForbiddenf wraps an error and sets the error code to 403 Forbidden (ErrorType_FORBIDDEN) using as message the string format result of `format` and `args.
WrapMethodNotAllowed wraps an error and sets the error code to 405 Method Not Allowed (ErrorType_METHOD_NOT_ALLOWED) and title to the default for that status.
WrapMethodNotAllowedf wraps an error and sets the error code to 405 Method Not Allowed (ErrorType_METHOD_NOT_ALLOWED) using as message the string format result of `format` and `args.
WrapNotAcceptable wraps an error and sets the error code to 406 Not Acceptable (ErrorType_NOT_ACCEPTABLE) and title to the default for that status.
WrapNotAcceptablef wraps an error and sets the error code to 406 Not Acceptable (ErrorType_NOT_ACCEPTABLE) using as message the string format result of `format` and `args.
WrapNotFound wraps an error and sets the error code to 404 Not Found (ErrorType_NOT_FOUND) and title to the default for that status.
WrapNotFoundf wraps an error and sets the error code to 404 Not Found (ErrorType_NOT_FOUND) using as message the string format result of `format` and `args.
WrapNotImplemented wraps an error and sets the error code to 501 Not Implemented (ErrorType_NOT_IMPLEMENTED) and title to the default for that status.
WrapNotImplementedf wraps an error and sets the error code to 501 Not Implemented (ErrorType_NOT_IMPLEMENTED) using as message the string format result of `format` and `args.
WrapPreconditionFailed wraps an error and sets the error code to 412 Precondition Failed (ErrorType_PRECONDITION_FAILED) and title to the default for that status.
WrapPreconditionFailedf wraps an error and sets the error code to 412 Precondition Failed (ErrorType_PRECONDITION_FAILED) using as message the string format result of `format` and `args.
WrapRequestEntityTooLarge wraps an error and sets the error code to 413 Request Entity Too Large (ErrorType_REQUEST_ENTITY_TOO_LARGE) and title to the default for that status.
WrapRequestEntityTooLargef wraps an error and sets the error code to 413 Request Entity Too Large (ErrorType_REQUEST_ENTITY_TOO_LARGE) using as message the string format result of `format` and `args.
WrapRequestTimeout wraps an error and sets the error code to 408 Request Timeout (ErrorType_REQUEST_TIMEOUT) and title to the default for that status.
WrapRequestTimeoutf wraps an error and sets the error code to 408 Request Timeout (ErrorType_REQUEST_TIMEOUT) using as message the string format result of `format` and `args.
WrapUnauthorized wraps an error and sets the error code to 401 Unauthorized (ErrorType_UNAUTHORIZED) and title to the default for that status.
WrapUnauthorizedf wraps an error and sets the error code to 401 Unauthorized (ErrorType_UNAUTHORIZED) using as message the string format result of `format` and `args.
WrapUnhandled wraps an error and sets the error code to 500 Unhandled (ErrorType_UNHANDLED) and title to the default for that status.
WrapUnhandledf wraps an error and sets the error code to 500 Unhandled (ErrorType_UNHANDLED) using as message the string format result of `format` and `args.
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
Error is a predefined structured which contains relevant information about an error.
InnerError contains the basic fields of a go error so it can be appended as an internal error in `Error`.