Exception: Hps::HpsException
- Inherits:
-
StandardError
- Object
- StandardError
- Hps::HpsException
- Defined in:
- lib/hps/infrastructure/hps_exception.rb
Direct Known Subclasses
ApiConnectionException, AuthenticationException, CardException, HpsCheckException, InvalidRequestException
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#inner_exception ⇒ Object
Returns the value of attribute inner_exception.
-
#response_code ⇒ Object
Returns the value of attribute response_code.
-
#response_text ⇒ Object
Returns the value of attribute response_text.
Instance Method Summary collapse
-
#initialize(message, code, inner_exception = nil) ⇒ HpsException
constructor
A new instance of HpsException.
Constructor Details
#initialize(message, code, inner_exception = nil) ⇒ HpsException
Returns a new instance of HpsException.
7 8 9 10 11 12 13 |
# File 'lib/hps/infrastructure/hps_exception.rb', line 7 def initialize(, code, inner_exception = nil) @code=code @inner_exception = inner_exception super() end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/hps/infrastructure/hps_exception.rb', line 4 def code @code end |
#inner_exception ⇒ Object
Returns the value of attribute inner_exception.
4 5 6 |
# File 'lib/hps/infrastructure/hps_exception.rb', line 4 def inner_exception @inner_exception end |
#response_code ⇒ Object
Returns the value of attribute response_code.
4 5 6 |
# File 'lib/hps/infrastructure/hps_exception.rb', line 4 def response_code @response_code end |
#response_text ⇒ Object
Returns the value of attribute response_text.
4 5 6 |
# File 'lib/hps/infrastructure/hps_exception.rb', line 4 def response_text @response_text end |