Exception: Campa::Error::IllegalArgument
- Inherits:
-
Campa::ExecutionError
- Object
- StandardError
- Campa::ExecutionError
- Campa::Error::IllegalArgument
- Defined in:
- lib/campa/error/illegal_argument.rb
Instance Method Summary collapse
-
#initialize(given, expected) ⇒ IllegalArgument
constructor
A new instance of IllegalArgument.
Constructor Details
#initialize(given, expected) ⇒ IllegalArgument
Returns a new instance of IllegalArgument.
4 5 6 |
# File 'lib/campa/error/illegal_argument.rb', line 4 def initialize(given, expected) super "Illegal argument: #{given} was expected to be a #{expected}" end |