Class: LAA::FeeCalculator::ClientError
- Inherits:
-
Faraday::Error::ClientError
- Object
- Faraday::Error::ClientError
- LAA::FeeCalculator::ClientError
- Defined in:
- lib/laa/fee_calculator/errors.rb
Overview
raised for failed response status between 400 and 599 and not handled by classes below
Direct Known Subclasses
Instance Method Summary collapse
-
#to_s ⇒ Object
overide the e.message attribute e.g.
Instance Method Details
#to_s ⇒ Object
overide the e.message attribute e.g. raise LAA::FeeCalculator::ResponseError.new(response)
> #<LAA::FeeCalculator::ResponseError: “‘case_date` should be in the format YYYY-MM-DD”>
13 14 15 |
# File 'lib/laa/fee_calculator/errors.rb', line 13 def to_s response[:body] end |