class Jennifer::DataTypeMismatch
- Jennifer::DataTypeMismatch
- Jennifer::BaseException
- Exception
- Reference
- Object
Defined in:
jennifer/exceptions.crConstant Summary
-
EXTRACT_WORDS_REG =
/returned a (.+)\. A (.+) was/
-
MATCH_REG =
/#read returned a/
Constructors
Class Method Summary
- .build(column, klass, exception)
-
.match?(exception)
TODO think about monkey patching DB::ResultSet#read for raising custom exception rather than
Exception
Instance methods inherited from class Jennifer::BaseException
message=(message)
message=
Constructor methods inherited from class Jennifer::BaseException
new(base_exception : Exception, extra_message : String? = nil)new(message) new
Class methods inherited from class Jennifer::BaseException
assert_column_count(requested, actual)
assert_column_count
Constructor Detail
Class Method Detail
def self.match?(exception)
#
TODO think about monkey patching DB::ResultSet#read for raising custom exception rather than Exception