Exception: Elmas::BadRequestException
- Inherits:
-
StandardError
- Object
- StandardError
- Elmas::BadRequestException
- Defined in:
- lib/elmas/exception.rb
Instance Method Summary collapse
-
#initialize(response, parsed) ⇒ BadRequestException
constructor
A new instance of BadRequestException.
- #message ⇒ Object
Constructor Details
#initialize(response, parsed) ⇒ BadRequestException
Returns a new instance of BadRequestException.
5 6 7 8 9 |
# File 'lib/elmas/exception.rb', line 5 def initialize(response, parsed) @response = response @parsed = parsed super() end |
Instance Method Details
#message ⇒ Object
11 12 13 |
# File 'lib/elmas/exception.rb', line 11 def "code #{@response.status}: #{@parsed.}" end |