Exception: Campa::Error::Parameters
- Inherits:
-
Campa::ExecutionError
- Object
- StandardError
- Campa::ExecutionError
- Campa::Error::Parameters
- Defined in:
- lib/campa/error/parameters.rb
Instance Method Summary collapse
-
#initialize(given, expected_type) ⇒ Parameters
constructor
A new instance of Parameters.
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 |