Exception: Rusql::TypeException
- Inherits:
-
Exception
- Object
- Exception
- Rusql::TypeException
- Defined in:
- lib/rusql/type_exception.rb
Instance Method Summary collapse
-
#initialize(expected, actual) ⇒ TypeException
constructor
A new instance of TypeException.
Constructor Details
#initialize(expected, actual) ⇒ TypeException
Returns a new instance of TypeException.
3 4 5 |
# File 'lib/rusql/type_exception.rb', line 3 def initialize(expected, actual) super("Expected: #{expected.name}. Got: #{actual.name}") end |