Exception: BSV::Wallet::InvalidParameterError
- Inherits:
-
WalletError
- Object
- StandardError
- WalletError
- BSV::Wallet::InvalidParameterError
- Defined in:
- lib/bsv/wallet_interface/errors/invalid_parameter_error.rb
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Attributes inherited from WalletError
Instance Method Summary collapse
-
#initialize(parameter, must_be = 'valid') ⇒ InvalidParameterError
constructor
A new instance of InvalidParameterError.
Constructor Details
#initialize(parameter, must_be = 'valid') ⇒ InvalidParameterError
Returns a new instance of InvalidParameterError.
8 9 10 11 |
# File 'lib/bsv/wallet_interface/errors/invalid_parameter_error.rb', line 8 def initialize(parameter, must_be = 'valid') @parameter = parameter super("The #{parameter} parameter must be #{must_be}", 6) end |
Instance Attribute Details
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
6 7 8 |
# File 'lib/bsv/wallet_interface/errors/invalid_parameter_error.rb', line 6 def parameter @parameter end |