lib/lotus/model.rb in lotus-model-0.3.0 vs lib/lotus/model.rb in lotus-model-0.3.1

- old
+ new

@@ -1,7 +1,8 @@ require 'lotus/model/version' require 'lotus/entity' +require 'lotus/entity/dirty_tracking' require 'lotus/repository' require 'lotus/model/mapper' require 'lotus/model/configuration' module Lotus @@ -23,9 +24,19 @@ # # @since 0.2.0 # # @see Lotus::Configuration#mapping class InvalidMappingError < ::StandardError + end + + # Error for invalid query + # It's raised when a query is malformed + # + # @since 0.3.1 + class InvalidQueryError < ::StandardError + def initialize(message = "Invalid query") + super + end end include Utils::ClassAttribute # Framework configuration