package
0.0.0-20241008100327-50a850cf9b5b
Repository: https://github.com/go-fox/fox.git
Documentation: pkg.go.dev

# Functions

As copy for errors.
BadRequest 错误请求.
ClientClosed 客户端关闭对应http的499错误.
Clone 克隆错误.
Code get Error.code.
Conflict 409 冲突错误.
Errorf is new a error.
Forbidden new Forbidden error that is mapped to a 403 response.
FromError 从error构造*Error.
GatewayTimeout 网关超时,对应到http的504.
InternalServer 内部服务器错误.
Is copy for errors.
IsBadRequest 判断是否时请求错误.
IsClientClosed 判断是否是客户端关闭.
IsConflict 是否是409冲突错误.
IsForbidden determines if err is an error which indicates a Forbidden error.
IsGatewayTimeout 判断是否是网关超时.
IsInternalServer 是否是客户端管理.
IsMethodNotAllowed 是否是请求超时.
IsNotFound determines if err is an error which indicates an NotFound error.
IsRequestEntityTooLarge 是否是请求体太大.
IsRequestHeaderFieldsTooLarge 是否是请求头字段太大.
IsRequestTimeout 是否是请求超时.
IsServiceUnavailable 判断错误码是否是503.
IsUnauthorized 判断是否是权限错误.
MethodNotAllowed 请求超时.
New create an error.
NotFound new NotFound error that is mapped to a 404 response.
Reason 错误原因.
RequestEntityTooLarge 请求体太大.
RequestHeaderFieldsTooLarge 请求头字段太大.
RequestTimeout 请求超时.
ServiceUnavailable 没有找到服务,映射到http的503.
Unauthorized 权限认证失败错误.

# Constants

SupportPackageIsVersion1 generate.
UnknownCode 未知错误.
UnknownReason 未知错误原因.

# Variables

optional int32 code = 1109;.
optional int32 default_code = 1108;.
No description provided by the author

# Structs

Error 错误定义.
No description provided by the author

# Type aliases

Frame represents a program counter inside a stack frame.
StackTrace is stack of Frames from innermost (newest) to outermost (oldest).