Exception: DeepL::Exceptions::NotFound
- Inherits:
-
RequestError
- Object
- StandardError
- Error
- RequestError
- DeepL::Exceptions::NotFound
- Defined in:
- lib/deepl/exceptions/not_found.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/not_found.rb', line 9 def JSON.parse(response.body)['message'] rescue JSON::ParserError response.body end |