Exception: Stripe::CardError
- Inherits:
 - 
      StripeError
      
        
- Object
 - StandardError
 - StripeError
 - Stripe::CardError
 
 
- Defined in:
 - lib/stripe/errors.rb
 
Overview
CardError is raised when a user enters a card that can’t be charged for some reason.
Instance Attribute Summary collapse
- 
  
    
      #param  ⇒ Object 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    
Returns the value of attribute param.
 
Attributes inherited from StripeError
#code, #error, #http_body, #http_headers, #http_status, #json_body, #message, #request_id, #response
Instance Method Summary collapse
- 
  
    
      #initialize(message, param, code: nil, http_status: nil, http_body: nil, json_body: nil, http_headers: nil)  ⇒ CardError 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    
A new instance of CardError.
 
Methods inherited from StripeError
#construct_error_object, #idempotent_replayed?, #to_s
Constructor Details
#initialize(message, param, code: nil, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) ⇒ CardError
Returns a new instance of CardError.
      70 71 72 73 74 75 76  | 
    
      # File 'lib/stripe/errors.rb', line 70 def initialize(, param, code: nil, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) super(, http_status: http_status, http_body: http_body, json_body: json_body, http_headers: http_headers, code: code) @param = param end  | 
  
Instance Attribute Details
#param ⇒ Object (readonly)
Returns the value of attribute param.
      68 69 70  | 
    
      # File 'lib/stripe/errors.rb', line 68 def param @param end  |