Skip to content

class Athena::ORM::Exception::InvalidType
inherits Athena::ORM::Exception::Conversion #

Raised when a Crystal value can't be converted to the database value of an AORM::Types::Type, because it's not one of the types it accepts.

Constructors#

.new(value, to_type : String, possible_types : Enumerable(String), cause : ::Exception | Nil = nil)#

View source