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
Constructor Details
This class inherits a constructor from DeepL::Exceptions::RequestError
Instance Method Details
#message ⇒ Object
6 7 8 9 10 |
# File 'lib/deepl/exceptions/bad_request.rb', line 6 def JSON.parse(response.body)['message'] rescue JSON::ParserError response.body end |