Method: Common::Client::Middleware::Response::RaiseCustomError#raise_error!
- Defined in:
- lib/common/client/middleware/response/raise_custom_error.rb
#raise_error! ⇒ Object (private)
28 29 30 31 32 33 34 |
# File 'lib/common/client/middleware/response/raise_custom_error.rb', line 28 def raise_error! if status&.between?(400, 599) raise Common::Exceptions::BackendServiceException.new(service_i18n_key, response_values, status, body) else raise BackendUnhandledException, "Unhandled Exception - status: #{status}, body: #{body}" end end |