Exception: ActiveCommand::Exceptions::IncompatibleType

Inherits:
StandardError
  • Object
show all
Defined in:
lib/active_command/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(object, expected) ⇒ IncompatibleType



11
12
13
14
15
# File 'lib/active_command/exceptions.rb', line 11

def initialize(object, expected)
  @object = object
  @expected = expected
  super("Incompatible type of #{object}, expected: `#{expected}` got: `#{object.class}`")
end