Error returns the concatenation of the error string and optional message
()
| 163 | |
| 164 | // Error returns the concatenation of the error string and optional message |
| 165 | func (e Error) Error() string { |
| 166 | errString := errorCodes[e.errorCode] |
| 167 | if e.msg != "" { |
| 168 | errString += ": " + e.msg |
| 169 | } |
| 170 | return errString |
| 171 | } |
| 172 | |
| 173 | func (e Error) GetCode() ErrorCode { |
| 174 | return e.errorCode |
no outgoing calls