Class: Nylas::NylasSdkTimeoutError

Inherits:
AbstractNylasSdkError show all
Defined in:
lib/nylas/errors.rb

Overview

Error class representing a timeout from the Nylas SDK.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url, timeout) ⇒ NylasSdkTimeoutError

Initializes an error and assigns the given attributes to it.

Parameters:

  • url (String)

    URL that timed out.

  • timeout (Integer)

    Timeout in seconds.



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

#timeoutObject

Returns the value of attribute timeout.



71
72
73
# File 'lib/nylas/errors.rb', line 71

def timeout
  @timeout
end

#urlObject

Returns the value of attribute url.



71
72
73
# File 'lib/nylas/errors.rb', line 71

def url
  @url
end