lib/pupa/errors.rb in pupa-0.0.11 vs lib/pupa/errors.rb in pupa-0.0.12
- old
+ new
@@ -1,9 +1,13 @@
module Pupa
module Errors
# An abstract class from which all Pupa errors inherit.
class Error < StandardError; end
+ # This error is raised when loading a scraped object from disk if a type is
+ # not set.
+ class MissingObjectTypeError < Error; end
+
# This error is raised when saving an object to a database if a foreign key
# cannot be resolved.
class MissingDatabaseIdError < Error; end
# This error is raised when dumping scraped objects to disk if two of those