class Nylas::NylasOAuthError

Error class representing a failed response from the Nylas OAuth integration.

Attributes

error[RW]
error_code[RW]
error_description[RW]
error_uri[RW]
status_code[RW]

Public Class Methods

new(error, error_description, error_uri, error_code, status_code) click to toggle source

Initializes an error and assigns the given attributes to it.

@param error [String] Error type. @param error_description [String] Description of the error. @param error_uri [String] Error URI. @param error_code [String] Error code. @param status_code [String] Error status code.

Calls superclass method
# File lib/nylas/errors.rb, line 59
def initialize(error, error_description, error_uri, error_code, status_code)
  super(error_description)
  self.error = error
  self.error_description = error_description
  self.error_uri = error_uri
  self.error_code = error_code
  self.status_code = status_code
end