Exception: Xendify::Errors::ResponseError
- Inherits:
-
StandardError
- Object
- StandardError
- Xendify::Errors::ResponseError
- Defined in:
- lib/xendify/errors.rb
Direct Known Subclasses
ApiValidation, CreditCard::ResponseError, DataNotFound, Disbursement::Error, DuplicateError, Invoice::ResponseError, ServerError, UnknownError, VirtualAccount::ResponseError
Instance Attribute Summary collapse
-
#payload ⇒ Object
readonly
Returns the value of attribute payload.
Instance Method Summary collapse
-
#initialize(message = nil, payload = nil) ⇒ ResponseError
constructor
A new instance of ResponseError.
Constructor Details
#initialize(message = nil, payload = nil) ⇒ ResponseError
Returns a new instance of ResponseError.
6 7 8 9 10 |
# File 'lib/xendify/errors.rb', line 6 def initialize( = nil, payload = nil) @message = @payload = payload super(@message) unless @message.nil? end |
Instance Attribute Details
#payload ⇒ Object (readonly)
Returns the value of attribute payload.
4 5 6 |
# File 'lib/xendify/errors.rb', line 4 def payload @payload end |