Class: Nylas::NylasSdkTimeoutError
- Inherits:
-
AbstractNylasSdkError
- Object
- AbstractNylasSdkError
- Nylas::NylasSdkTimeoutError
- Defined in:
- lib/nylas/errors.rb
Overview
Error class representing a timeout from the Nylas SDK.
Instance Attribute Summary collapse
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url, timeout) ⇒ NylasSdkTimeoutError
constructor
Initializes an error and assigns the given attributes to it.
Constructor Details
#initialize(url, timeout) ⇒ NylasSdkTimeoutError
Initializes an error and assigns the given attributes to it.
79 80 81 82 83 |
# File 'lib/nylas/errors.rb', line 79 def initialize(url, timeout) super("Nylas SDK timed out before receiving a response from the server.") self.url = url self.timeout = timeout end |
Instance Attribute Details
#timeout ⇒ Object
Returns the value of attribute timeout.
73 74 75 |
# File 'lib/nylas/errors.rb', line 73 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
73 74 75 |
# File 'lib/nylas/errors.rb', line 73 def url @url end |