Error is a terminal error.
| 10 | |
| 11 | // Error is a terminal error. |
| 12 | type Error struct { |
| 13 | // id holds the internal error ID. |
| 14 | id uint8 |
| 15 | // external signifies if the error was received from the outside. |
| 16 | external bool |
| 17 | // err holds the wrapped error or the default error message. |
| 18 | err error |
| 19 | } |
| 20 | |
| 21 | // ID returns the internal ID of the error. |
| 22 | func (e *Error) ID() uint8 { |
nothing calls this directly
no outgoing calls
no test coverage detected