Documentation
¶
Overview ¶
一个简单的生成错误的帮助类
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FormatString = "%v\nthe trace error is\n%s"
)
Functions ¶
func New ¶
return a error @param format string string format @param p ...interface{} additional parameter @return error
func NewCodeError ¶
Returns an error in format with both the error code and the original error message
@param code int the code of error @param format string string format @param p ...interface{} additional parameter @return error
Types ¶
Click to show internal directories.
Click to hide internal directories.