Exception: OpenReceive::Server::WalletContractError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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(message = "Wallet violated the receive-checkout contract.")
  super(message)
  @status = 502
  @code = "UNSUPPORTED_METHOD"
end

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



183
184
185
# File 'lib/openreceive/server/errors.rb', line 183

def code
  @code
end

#statusObject (readonly)

Returns the value of attribute status.



183
184
185
# File 'lib/openreceive/server/errors.rb', line 183

def status
  @status
end