Exception: Campa::Error::IllegalArgument

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

Instance Method Summary collapse

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