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.
77 78 79 80 81 |
# File 'lib/nylas/errors.rb', line 77 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.
71 72 73 |
# File 'lib/nylas/errors.rb', line 71 def timeout @timeout end |
#url ⇒ Object
Returns the value of attribute url.
71 72 73 |
# File 'lib/nylas/errors.rb', line 71 def url @url end |