ErrCode implements `github.com/marmotedu/errors`.Coder interface.
| 13 | |
| 14 | // ErrCode implements `github.com/marmotedu/errors`.Coder interface. |
| 15 | type ErrCode struct { |
| 16 | // C refers to the code of the ErrCode. |
| 17 | C int |
| 18 | |
| 19 | // HTTP status that should be used for the associated error code. |
| 20 | HTTP int |
| 21 | |
| 22 | // External (user) facing error text. |
| 23 | Ext string |
| 24 | |
| 25 | // Ref specify the reference document. |
| 26 | Ref string |
| 27 | } |
| 28 | |
| 29 | var _ errors.Coder = &ErrCode{} |
| 30 |
nothing calls this directly
no outgoing calls
no test coverage detected