Exception: BSV::Wallet::InvalidParameterError

Inherits:
Error
  • Object
show all
Defined in:
lib/bsv/wallet/errors.rb

Overview

Raised when a required parameter is missing or invalid.

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

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

#parameterObject (readonly)

Returns the value of attribute parameter.



18
19
20
# File 'lib/bsv/wallet/errors.rb', line 18

def parameter
  @parameter
end