mirror of
https://github.com/pyihe/go-pkg.git
synced 2025-09-26 20:11:21 +08:00
feature(error): add func
This commit is contained in:
@@ -27,3 +27,7 @@ func (e *Error) Error() (err string) {
|
||||
func (e *Error) Code() int32 {
|
||||
return e.code
|
||||
}
|
||||
|
||||
func (e *Error) Message() string {
|
||||
return e.err
|
||||
}
|
||||
|
Reference in New Issue
Block a user