Exception: BSV::Wallet::InvalidParameterError

Inherits:
WalletError
  • Object
show all
Defined in:
lib/bsv/wallet_interface/errors/invalid_parameter_error.rb

Instance Attribute Summary collapse

Attributes inherited from WalletError

#code

Instance Method Summary collapse

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

#parameterObject (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