Documentation ¶
Index ¶
Constants ¶
View Source
const (
// MaxStackDepth marks the max stack depth for error back traces.
MaxStackDepth = 1
)
Variables ¶
View Source
var (
CodeLimitExceed = ApiCode{/* contains filtered or unexported fields */} // is service unavailable due to rate limit exceeded.
)
Functions ¶
Types ¶
type ApiCode ¶
type ApiCode struct {
// contains filtered or unexported fields
}
ApiCode is an implementer for interface Code for internal usage only.
func (ApiCode) Detail ¶
func (c ApiCode) Detail() interface{}
Detail returns the detailed information of current error code, which is mainly designed as an extension field for error code.
Click to show internal directories.
Click to hide internal directories.