WithInternalMessage adds internal message information to the error
(fmtString string, args ...interface{})
| 37 | |
| 38 | // WithInternalMessage adds internal message information to the error |
| 39 | func (e *HTTPError) WithInternalMessage(fmtString string, args ...interface{}) *HTTPError { |
| 40 | e.InternalMessage = fmt.Sprintf(fmtString, args...) |
| 41 | return e |
| 42 | } |
| 43 | |
| 44 | func httpError(code int, fmtString string, args ...interface{}) *HTTPError { |
| 45 | return &HTTPError{ |
no outgoing calls