Class: Rx::Middleware::Response::RxRaiseError
- Inherits:
-
Common::Client::Middleware::Response::RaiseCustomError
- Object
- Faraday::Middleware
- Common::Client::Middleware::Response::RaiseCustomError
- Rx::Middleware::Response::RxRaiseError
- Defined in:
- lib/rx/middleware/response/rx_raise_error.rb
Instance Attribute Summary
Attributes inherited from Common::Client::Middleware::Response::RaiseCustomError
Instance Method Summary collapse
- #service_i18n_key ⇒ Object private
Methods inherited from Common::Client::Middleware::Response::RaiseCustomError
#initialize, #on_complete, #raise_error!, #response_values
Constructor Details
This class inherits a constructor from Common::Client::Middleware::Response::RaiseCustomError
Instance Method Details
#service_i18n_key ⇒ Object (private)
11 12 13 14 15 |
# File 'lib/rx/middleware/response/rx_raise_error.rb', line 11 def service_i18n_key key = super key << 'LOCKED' if status == 400 && body['source']&.include?('optimistic locking failed') key end |