Exception: Rusql::TypeException

Inherits:
Exception
  • Object
show all
Defined in:
lib/rusql/type_exception.rb

Instance Method Summary collapse

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