Error The interface that all internally managed errors should adhere to.
| 24 | } |
| 25 | // Error The interface that all internally managed errors should adhere to. |
| 26 | Error interface { |
| 27 | requiredSupertype |
| 28 | // Messages the message associated with this Error. |
| 29 | Messages() Messages |
| 30 | // GetType gets the Type of this error |
| 31 | GetType() *Type |
| 32 | // As Attempts to cast this Error to the requested Type, and returns nil if it can't. |
| 33 | As(*Type) Error |
| 34 | // GetData returns the data associated with this Error (may be nil) |
| 35 | GetData() interface{} |
| 36 | } |
| 37 | ) |
| 38 | |
| 39 | // AsLakeErrorType attempts to cast err to Error, otherwise returns nil |
no outgoing calls
no test coverage detected