Exception: Inbox::APIError
- Inherits:
-
StandardError
- Object
- StandardError
- Inbox::APIError
- Defined in:
- lib/inbox.rb,
lib/nylas.rb
Direct Known Subclasses
InvalidRequest, MessageRejected, SendingQuotaExceeded, ServiceUnavailable
Instance Attribute Summary collapse
-
#error_type ⇒ Object
Returns the value of attribute error_type.
-
#server_error ⇒ Object
Returns the value of attribute server_error.
Instance Method Summary collapse
-
#initialize(type, error, server_error = nil) ⇒ APIError
constructor
A new instance of APIError.
Constructor Details
#initialize(type, error, server_error = nil) ⇒ APIError
Returns a new instance of APIError.
36 37 38 39 40 |
# File 'lib/inbox.rb', line 36 def initialize(type, error, server_error = nil) super(error) self.error_type = type self.server_error = server_error end |
Instance Attribute Details
#error_type ⇒ Object
Returns the value of attribute error_type.
33 34 35 |
# File 'lib/inbox.rb', line 33 def error_type @error_type end |
#server_error ⇒ Object
Returns the value of attribute server_error.
34 35 36 |
# File 'lib/inbox.rb', line 34 def server_error @server_error end |