Class: LAA::FeeCalculator::ClientError

Inherits:
Faraday::Error::ClientError
  • Object
show all
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

ResponseError

Instance Method Summary collapse

Instance Method Details

#to_sObject

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