Exception: Stripe::CannotProceedError

Inherits:
StripeError
  • Object
show all
Defined in:
lib/stripe/errors.rb

Instance Attribute Summary collapse

Attributes inherited from StripeError

#code, #error, #http_body, #http_headers, #http_status, #json_body, #message, #request_id, #response

Instance Method Summary collapse

Methods inherited from StripeError

#construct_error_object, #to_s

Constructor Details

#initialize(message = nil, http_body: nil, http_status: nil, json_body: nil, http_headers: nil, code: nil, reason: nil) ⇒ CannotProceedError

Returns a new instance of CannotProceedError.



177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
# File 'lib/stripe/errors.rb', line 177

def initialize(
  message = nil,
  http_body: nil,
  http_status: nil,
  json_body: nil,
  http_headers: nil,
  code: nil,
  reason: nil
)
  super(
    message,
    http_body: http_body,
    http_status: http_status,
    json_body: json_body,
    http_headers: http_headers,
    code: code,
  )
  @reason = reason
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



175
176
177
# File 'lib/stripe/errors.rb', line 175

def reason
  @reason
end