class Jennifer::DataTypeMismatch

Defined in:

jennifer/exceptions.cr

Constant Summary

EXTRACT_WORDS_REG = /returned a (.+)\. A (.+) was/
MATCH_REG = /#read returned a/

Constructors

Class Method Summary

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

def self.new(column, klass, exception) #

[View source]

Class Method Detail

def self.build(column, klass, exception) #

[View source]
def self.match?(exception) #

TODO think about monkey patching DB::ResultSet#read for raising custom exception rather than Exception


[View source]