lib/pupa/errors.rb in pupa-0.0.13 vs lib/pupa/errors.rb in pupa-0.1.0
- old
+ new
@@ -18,9 +18,13 @@
# This error is raised when attempting to get or set a property that does
# not exist in an object.
class MissingAttributeError < Error; end
# This error is raised when saving an object to a database if the object
+ # produces an empty selector.
+ class EmptySelectorError < Error; end
+
+ # This error is raised when saving an object to a database if the object
# matches more than one document in the database.
class TooManyMatches < Error; end
# This error is raised if an object's foreign keys or foreign objects cannot
# be resolved.