(httpStatusCode int)
| 51 | } |
| 52 | |
| 53 | func (e *ApiError) WithHttpStatusCode(httpStatusCode int) *ApiError { |
| 54 | e.HttpStatusCode = httpStatusCode |
| 55 | return e |
| 56 | } |
| 57 | |
| 58 | func (e *ApiError) WithCode(code string) *ApiError { |
| 59 | e.Code = code |
no outgoing calls
no test coverage detected