Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CodeUnknown is unknown error code CodeUnknown = 1099 // StatusUnknown is unknown error code status StatusUnknown = "Unknown" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeError ¶
CodeError is error with code
func (CodeError) MarshalJSON ¶
MarshalJSON impletement json.Marshal interface
type CodeErrorFactory ¶
type CodeErrorFactory struct {
// contains filtered or unexported fields
}
CodeErrorFactory is to generate new CodeError
func NewCodeErrorFactory ¶
func NewCodeErrorFactory(codeMap map[int]string) CodeErrorFactory
NewCodeErrorFactory impletment a CodeErrorFactory
type StructJsonError ¶
type StructJsonError interface { StructError JSON() (string, error) }
StructJsonError interface
Click to show internal directories.
Click to hide internal directories.