lib/lotus/model.rb in lotus-model-0.4.1 vs lib/lotus/model.rb in lotus-model-0.5.0
- old
+ new
@@ -26,11 +26,19 @@
#
# @see Lotus::Configuration#mapping
class InvalidMappingError < ::StandardError
end
- # Error for invalid query
- # It's raised when a query is malformed
+ # Error for invalid raw command syntax
+ #
+ # @since 0.5.0
+ class InvalidCommandError < ::StandardError
+ def initialize(message = "Invalid command")
+ super
+ end
+ end
+
+ # Error for invalid raw query syntax
#
# @since 0.3.1
class InvalidQueryError < ::StandardError
def initialize(message = "Invalid query")
super