Class: Inbox::APIError

Inherits:
Error
  • Object
show all
Defined in:
lib/inbox.rb,
lib/nylas.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, error, server_error = nil) ⇒ APIError

Returns a new instance of APIError.



35
36
37
38
39
# File 'lib/inbox.rb', line 35

def initialize(type, error, server_error = nil)
  super(error)
  self.error_type = type
  self.server_error = server_error
end

Instance Attribute Details

#error_typeObject

Returns the value of attribute error_type.



32
33
34
# File 'lib/inbox.rb', line 32

def error_type
  @error_type
end

#server_errorObject

Returns the value of attribute server_error.



33
34
35
# File 'lib/inbox.rb', line 33

def server_error
  @server_error
end