Documentation ¶
Overview ¶
@Time : 2019-11-11 13:43 @Author : zr
Index ¶
- Variables
- type ErrorType
- type StdError
- type Utils
- func (Utils) Equal(err error, errorType *ErrorType) bool
- func (Utils) FromError(err error, errorType *ErrorType) (stdErr *StdError)
- func (Utils) NewErrorType(code int, showMsg, debugMsg string) *ErrorType
- func (Utils) NewStdError(errorType *ErrorType, debugMsg string) *StdError
- func (Utils) NewStdErrorWarpInFunc(errorType *ErrorType, debugMsg string, warpCount int) *StdError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //功能集 U = Utils{} )
Functions ¶
This section is empty.
Types ¶
type StdError ¶
type StdError struct { *ErrorType // contains filtered or unexported fields }
func (*StdError) DebugMessage ¶
type Utils ¶
type Utils struct { }
func (Utils) NewErrorType ¶
func (Utils) NewStdError ¶
生成一个错误
Click to show internal directories.
Click to hide internal directories.