NewServiceException xxx
(cause string, lasterr error)
| 212 | |
| 213 | // NewServiceException xxx |
| 214 | func NewServiceException(cause string, lasterr error) FinalError { |
| 215 | return NewGenericException(BasicError{ |
| 216 | Code: ServiceException, |
| 217 | Cause: cause, |
| 218 | Message: "Service encountered an internal error", |
| 219 | Status: http.StatusInternalServerError, |
| 220 | }, lasterr) |
| 221 | } |
| 222 | |
| 223 | // NewUnrecognizedClientException creates a UnrecognizedClientException |
| 224 | // HTTP status code is StatusForbidden (403) |
no test coverage detected