Error implements the error interface.
()
| 59 | |
| 60 | // Error implements the error interface. |
| 61 | func (e *CanvasError) Error() string { |
| 62 | return e.Code + ": " + e.Message |
| 63 | } |
| 64 | |
| 65 | // NewCanvasError constructs a new error envelope with the given code and message. |
| 66 | func NewCanvasError(code, message string) *CanvasError { |
no outgoing calls