Exception: OpenReceive::Server::WalletContractError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::Server::WalletContractError
- Defined in:
- lib/openreceive/server/errors.rb
Overview
502 — the wallet responded but violated the receive-checkout contract (for example minting an invoice that ignores the requested expiry).
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(message = "Wallet violated the receive-checkout contract.") ⇒ WalletContractError
constructor
A new instance of WalletContractError.
Constructor Details
#initialize(message = "Wallet violated the receive-checkout contract.") ⇒ WalletContractError
Returns a new instance of WalletContractError.
185 186 187 188 189 |
# File 'lib/openreceive/server/errors.rb', line 185 def initialize( = "Wallet violated the receive-checkout contract.") super() @status = 502 @code = "UNSUPPORTED_METHOD" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
183 184 185 |
# File 'lib/openreceive/server/errors.rb', line 183 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
183 184 185 |
# File 'lib/openreceive/server/errors.rb', line 183 def status @status end |