Defines a type for error modules
| 20 | type ErrorModule string // Defines a type for error modules |
| 21 | |
| 22 | type Error struct { |
| 23 | ECode ErrorCode `json:"code"` // Error code |
| 24 | EModule ErrorModule `json:"module"` // Error module |
| 25 | Msg string `json:"msg"` // Error message |
| 26 | } |
| 27 | |
| 28 | func NewError(code ErrorCode, module ErrorModule, msg string) *Error { |
| 29 | // Constructs a new Error instance |
nothing calls this directly
no outgoing calls
no test coverage detected