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
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(response, request = nil, message = nil) ⇒ NotFound
constructor
A new instance of NotFound.
- #to_s ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(response, request = nil, message = nil) ⇒ NotFound
Returns a new instance of NotFound.
11 12 13 14 |
# File 'lib/deepl/exceptions/not_found.rb', line 11 def initialize(response, request = nil, = nil) super(response, request) @message = end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/deepl/exceptions/not_found.rb', line 16 def to_s (@message || ).to_s end |