Exception: BSV::Wallet::InvalidParameterError
- Defined in:
- lib/bsv/wallet/errors.rb
Overview
Raised when a required parameter is missing or invalid.
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Attributes inherited from Error
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.
20 21 22 23 |
# File 'lib/bsv/wallet/errors.rb', line 20 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.
18 19 20 |
# File 'lib/bsv/wallet/errors.rb', line 18 def parameter @parameter end |