Sha256: 1eb1c5603c55936202e6b9859f255fdb949ab8b559ccb0fd377cd790e5cf528a
Contents?: true
Size: 1.32 KB
Versions: 17
Compression:
Stored size: 1.32 KB
Contents
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 # objects share an ID. class DuplicateObjectIdError < Error; end # 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. class UnprocessableEntity < Error; end # This error is raised if duplicate objects were inadvertently saved to the # database. class DuplicateDocumentError < Error; end end end
Version data entries
17 entries across 17 versions & 1 rubygems