升级异常接口约束
This commit is contained in:
@ -36,6 +36,14 @@ func (e *Exception) GetMessage() string {
|
||||
return e.message
|
||||
}
|
||||
|
||||
func (e *Exception) GetRealReason() string {
|
||||
return getReason(e.GetCode())
|
||||
}
|
||||
|
||||
func (e *Exception) GetSolution() map[string]interface{} {
|
||||
return getSolution(e.GetCode())
|
||||
}
|
||||
|
||||
func (e *Exception) GetData() interface{} {
|
||||
return e.data
|
||||
}
|
||||
|
Reference in New Issue
Block a user