Exception: Transbank::Webpay::Errors::WebpayError
- Inherits:
-
Errors::TransbankError
- Object
- StandardError
- Errors::TransbankError
- Transbank::Webpay::Errors::WebpayError
- Defined in:
- lib/transbank/sdk/webpay/errors/webpay_error.rb
Direct Known Subclasses
WebpayPlus::Errors::TransactionCaptureError, WebpayPlus::Errors::TransactionCommitError, WebpayPlus::Errors::TransactionCreateError, WebpayPlus::Errors::TransactionRefundError, WebpayPlus::Errors::TransactionStatusError
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 = nil) ⇒ WebpayError
constructor
A new instance of WebpayError.
Constructor Details
#initialize(message, code = nil) ⇒ WebpayError
Returns a new instance of WebpayError.
6 7 8 9 10 |
# File 'lib/transbank/sdk/webpay/errors/webpay_error.rb', line 6 def initialize(, code = nil) self. = self.code = code super() end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
5 6 7 |
# File 'lib/transbank/sdk/webpay/errors/webpay_error.rb', line 5 def code @code end |
#message ⇒ Object
Returns the value of attribute message.
5 6 7 |
# File 'lib/transbank/sdk/webpay/errors/webpay_error.rb', line 5 def @message end |