Error error
| 16 | |
| 17 | // Error error |
| 18 | type Error struct { |
| 19 | code int |
| 20 | msg string |
| 21 | details []string |
| 22 | |
| 23 | // if true, need to convert to standard http code |
| 24 | // use ErrToHTTP and ParseError will set this to true |
| 25 | needHTTPCode bool |
| 26 | } |
| 27 | |
| 28 | // NewError create a new error message |
| 29 | func NewError(code int, msg string, details ...string) *Error { |
nothing calls this directly
no outgoing calls
no test coverage detected