Error implements the error interface.
()
| 14 | |
| 15 | // Error implements the error interface. |
| 16 | func (e *Error) Error() string { |
| 17 | if e == nil { |
| 18 | return "" |
| 19 | } |
| 20 | if e.Code == "" { |
| 21 | return e.Message |
| 22 | } |
| 23 | return e.Code + ": " + e.Message |
| 24 | } |
| 25 | |
| 26 | // StatusCode implements optional status accessor for manager decision making. |
| 27 | func (e *Error) StatusCode() int { |
no outgoing calls