Exception: DeepL::Exceptions::BadRequest
- Inherits:
-
RequestError
- Object
- StandardError
- Error
- RequestError
- DeepL::Exceptions::BadRequest
- Defined in:
- lib/deepl/exceptions/bad_request.rb
Instance Attribute Summary
Attributes inherited from RequestError
Instance Method Summary collapse
Methods inherited from RequestError
Methods inherited from Error
Constructor Details
This class inherits a constructor from DeepL::Exceptions::RequestError
Instance Method Details
#message ⇒ Object
9 10 11 12 13 |
# File 'lib/deepl/exceptions/bad_request.rb', line 9 def JSON.parse(response.body)['message'] rescue JSON::ParserError response.body end |