(statusCode int)
| 391 | } |
| 392 | |
| 393 | func ErrOptionWithStatusCode(statusCode int) NewAPIErrorOptions { |
| 394 | return func(e *NewAPIError) { |
| 395 | e.StatusCode = statusCode |
| 396 | } |
| 397 | } |
| 398 | |
| 399 | func ErrOptionWithHideErrMsg(replaceStr string) NewAPIErrorOptions { |
| 400 | return func(e *NewAPIError) { |
no outgoing calls
no test coverage detected