NewMessage creates an internal error with only the explanation for the administrator inserted. - Code is an error code allowing an administrator to identify the error that happened. - Explanation is the explanation string to the system administrator. This is an fmt.Sprintf-compatible string - Args
(Code string, Explanation string, Args ...interface{})
| 46 | // - Args are the arguments to Explanation to create a formatted message. It is recommended that these arguments also |
| 47 | // be added as labels to allow system administrators to index the error properly. |
| 48 | func NewMessage(Code string, Explanation string, Args ...interface{}) Message { |
| 49 | return UserMessage( |
| 50 | Code, |
| 51 | "Internal Error", |
| 52 | Explanation, |
| 53 | Args..., |
| 54 | ) |
| 55 | } |
| 56 | |
| 57 | // Wrap creates a wrapped error with a specific Code and Explanation string. The wrapping method will automatically |
| 58 | // |