Exception: OpenReceive::WalletUnavailableError
- Inherits:
-
StandardError
- Object
- StandardError
- OpenReceive::WalletUnavailableError
- Defined in:
- lib/openreceive/core.rb
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 = "NWC wallet service is unavailable.") ⇒ WalletUnavailableError
constructor
A new instance of WalletUnavailableError.
Constructor Details
#initialize(message = "NWC wallet service is unavailable.") ⇒ WalletUnavailableError
Returns a new instance of WalletUnavailableError.
32 33 34 35 36 |
# File 'lib/openreceive/core.rb', line 32 def initialize( = "NWC wallet service is unavailable.") super() @status = 503 @code = "WALLET_UNAVAILABLE" end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
30 31 32 |
# File 'lib/openreceive/core.rb', line 30 def code @code end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
30 31 32 |
# File 'lib/openreceive/core.rb', line 30 def status @status end |