Exception: BSV::Wallet::InvalidParameterError
- Defined in:
- lib/bsv/wallet/errors.rb
Overview
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 = nil, stack: '') ⇒ InvalidParameterError
constructor
A new instance of InvalidParameterError.
Methods inherited from Error
Constructor Details
#initialize(parameter, must_be = nil, stack: '') ⇒ InvalidParameterError
Returns a new instance of InvalidParameterError.
59 60 61 62 63 |
# File 'lib/bsv/wallet/errors.rb', line 59 def initialize(parameter, must_be = nil, stack: '') @parameter = must_be ? parameter : nil = must_be ? "the #{parameter} parameter must be #{must_be}" : parameter super(, code: 6, stack: stack) end |
Instance Attribute Details
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
57 58 59 |
# File 'lib/bsv/wallet/errors.rb', line 57 def parameter @parameter end |