Exception: Elmas::BadRequestException
- Inherits:
-
Exception
- Object
- Exception
- 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.
3 4 5 6 7 |
# File 'lib/elmas/exception.rb', line 3 def initialize(response, parsed) @response = response @parsed = parsed super() end |
Instance Method Details
#message ⇒ Object
9 10 11 |
# File 'lib/elmas/exception.rb', line 9 def "code #{@response.status}: #{@parsed.error_message}" end |