Exception: Helio::ParticipantError
- Inherits:
-
HelioError
- Object
- StandardError
- HelioError
- Helio::ParticipantError
- Defined in:
- lib/helio/errors.rb
Overview
ParticipantError is raised when a user enters a card that can’t be charged for some reason.
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#param ⇒ Object
readonly
Returns the value of attribute param.
Attributes inherited from HelioError
#http_body, #http_headers, #http_status, #json_body, #message, #request_id, #response
Instance Method Summary collapse
-
#initialize(message, param, code, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) ⇒ ParticipantError
constructor
A new instance of ParticipantError.
Methods inherited from HelioError
Constructor Details
#initialize(message, param, code, http_status: nil, http_body: nil, json_body: nil, http_headers: nil) ⇒ ParticipantError
Returns a new instance of ParticipantError.
62 63 64 65 66 67 68 |
# File 'lib/helio/errors.rb', line 62 def initialize(, param, code, 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) @param = param @code = code end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
60 61 62 |
# File 'lib/helio/errors.rb', line 60 def code @code end |
#param ⇒ Object (readonly)
Returns the value of attribute param.
60 61 62 |
# File 'lib/helio/errors.rb', line 60 def param @param end |