Class: Rx::Middleware::Response::RxRaiseError

Inherits:
Common::Client::Middleware::Response::RaiseCustomError show all
Defined in:
lib/rx/middleware/response/rx_raise_error.rb

Instance Attribute Summary

Attributes inherited from Common::Client::Middleware::Response::RaiseCustomError

#body, #error_prefix, #status

Instance Method Summary collapse

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_keyObject (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