Exception: DeepL::Exceptions::RequestError
- Defined in:
- lib/deepl/exceptions/request_error.rb
Direct Known Subclasses
AuthorizationFailed, BadRequest, LimitExceeded, NotFound, QuotaExceeded, RequestEntityTooLarge, ServerError
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ RequestError
constructor
A new instance of RequestError.
- #message ⇒ Object
Methods inherited from Error
Constructor Details
#initialize(response) ⇒ RequestError
Returns a new instance of RequestError.
11 12 13 14 |
# File 'lib/deepl/exceptions/request_error.rb', line 11 def initialize(response) super() @response = response end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
9 10 11 |
# File 'lib/deepl/exceptions/request_error.rb', line 9 def request @request end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
9 10 11 |
# File 'lib/deepl/exceptions/request_error.rb', line 9 def response @response end |
Instance Method Details
#message ⇒ Object
16 17 18 |
# File 'lib/deepl/exceptions/request_error.rb', line 16 def 'Unknown error.' end |