Exception: Campa::Error::Parameters

Inherits:
Campa::ExecutionError show all
Defined in:
lib/campa/error/parameters.rb

Instance Method Summary collapse

Constructor Details

#initialize(given, expected_type) ⇒ Parameters

Returns a new instance of Parameters.



4
5
6
7
8
# File 'lib/campa/error/parameters.rb', line 4

def initialize(given, expected_type)
  msg = "Parameter list may only contain #{expected_type}: "
  msg += "#{given} is not a #{expected_type}"
  super msg
end