Exception: ActiveCommand::Exceptions::IncompatibleType
- Inherits:
-
StandardError
- Object
- StandardError
- ActiveCommand::Exceptions::IncompatibleType
- Defined in:
- lib/active_command/exceptions.rb
Instance Method Summary collapse
-
#initialize(object, expected) ⇒ IncompatibleType
constructor
A new instance of IncompatibleType.
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 |