Exception: Transbank::Patpass::Errors::PatpassError
- Inherits:
-
Errors::TransbankError
- Object
- StandardError
- Errors::TransbankError
- Transbank::Patpass::Errors::PatpassError
- Defined in:
- lib/transbank/sdk/patpass/errors/patpass_error.rb
Direct Known Subclasses
PatpassByWebpay::Errors::TransactionCommitError, PatpassByWebpay::Errors::TransactionCreateError, PatpassByWebpay::Errors::TransactionStatusError, PatpassComercio::Errors::InscriptionStartError, PatpassComercio::Errors::InscriptionStatusError
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, code) ⇒ PatpassError
constructor
A new instance of PatpassError.
Constructor Details
#initialize(message, code) ⇒ PatpassError
Returns a new instance of PatpassError.
6 7 8 9 10 |
# File 'lib/transbank/sdk/patpass/errors/patpass_error.rb', line 6 def initialize(, code) self. = self.code = code super() end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/transbank/sdk/patpass/errors/patpass_error.rb', line 5 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/transbank/sdk/patpass/errors/patpass_error.rb', line 5 def @message end |