Documentation
¶
Index ¶
- func IsBadRequest(err *Error) bool
- func IsClientClosed(err *Error) bool
- func IsConflict(err *Error) bool
- func IsForbidden(err *Error) bool
- func IsGatewayTimeout(err *Error) bool
- func IsInternalServer(err *Error) bool
- func IsNotFound(err *Error) bool
- func IsServiceUnavailable(err *Error) bool
- func IsUnauthorized(err *Error) bool
- func LogStack(start, end int) string
- type Error
- func BadRequest(reason string) *Error
- func ClientClosed(reason string) *Error
- func Conflict(reason string) *Error
- func Forbidden(reason string) *Error
- func GatewayTimeout(reason string) *Error
- func InternalServer(reason string) *Error
- func New(code int, reason string) *Error
- func NotFound(reason string) *Error
- func ServiceUnavailable(reason string) *Error
- func Unauthorized(reason string) *Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsBadRequest ¶
IsBadRequest determines if err is BadRequest error.
func IsClientClosed ¶
IsClientClosed determines if err is ClientClosed error.
func IsForbidden ¶
IsForbidden determines if err is Forbidden error.
func IsGatewayTimeout ¶
IsGatewayTimeout determines if err is GatewayTimeout error.
func IsInternalServer ¶
IsInternalServer determines if err is InternalServer error.
func IsServiceUnavailable ¶
IsServiceUnavailable determines if err is ServiceUnavailable error.
func IsUnauthorized ¶
IsUnauthorized determines if err is Unauthorized error.
Types ¶
type Error ¶
Error is error with info
func GatewayTimeout ¶
GatewayTimeout new GatewayTimeout error
func InternalServer ¶
InternalServer new InternalServer error
func ServiceUnavailable ¶
ServiceUnavailable new ServiceUnavailable error
Click to show internal directories.
Click to hide internal directories.