Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Success = NewError(0, "成功") ServerError = NewError(10000000, "内部错误") InvalidParams = NewError(10000001, "无效参数") NotFound = NewError(10000003, "没有找到") Unknown = NewError(10000004, "未知") DeadlineExceeded = NewError(10000005, "超出最后截止期限") AccessDenied = NewError(10000006, "访问被拒绝") LimitExceed = NewError(10000007, "访问限制") TooManyRequests = NewError(10000008, "请求过多") MethodNotAllowed = NewError(10000009, "不支持该方法") )
Functions ¶
func TogRPCError ¶
Types ¶
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) StatusCode ¶
func (*Error) WithDetails ¶
Click to show internal directories.
Click to hide internal directories.