Class: Nylas::NylasOAuthError
- Inherits:
 - 
      AbstractNylasApiError
      
        
- Object
 - AbstractNylasApiError
 - Nylas::NylasOAuthError
 
 
- Defined in:
 - lib/nylas/errors.rb
 
Overview
Error class representing a failed response from the Nylas OAuth integration.
Instance Attribute Summary collapse
- 
  
    
      #error  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error.
 - 
  
    
      #error_code  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error_code.
 - 
  
    
      #error_description  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error_description.
 - 
  
    
      #error_uri  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute error_uri.
 - 
  
    
      #status_code  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    
Returns the value of attribute status_code.
 
Instance Method Summary collapse
- 
  
    
      #initialize(error, error_description, error_uri, error_code, status_code)  ⇒ NylasOAuthError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
Initializes an error and assigns the given attributes to it.
 
Constructor Details
#initialize(error, error_description, error_uri, error_code, status_code) ⇒ NylasOAuthError
Initializes an error and assigns the given attributes to it.
      59 60 61 62 63 64 65 66  | 
    
      # 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  | 
  
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
      50 51 52  | 
    
      # File 'lib/nylas/errors.rb', line 50 def error @error end  | 
  
#error_code ⇒ Object
Returns the value of attribute error_code.
      50 51 52  | 
    
      # File 'lib/nylas/errors.rb', line 50 def error_code @error_code end  | 
  
#error_description ⇒ Object
Returns the value of attribute error_description.
      50 51 52  | 
    
      # File 'lib/nylas/errors.rb', line 50 def error_description @error_description end  | 
  
#error_uri ⇒ Object
Returns the value of attribute error_uri.
      50 51 52  | 
    
      # File 'lib/nylas/errors.rb', line 50 def error_uri @error_uri end  | 
  
#status_code ⇒ Object
Returns the value of attribute status_code.
      50 51 52  | 
    
      # File 'lib/nylas/errors.rb', line 50 def status_code @status_code end  |