Sha256: b2b9b3abffe1743c2c4ba4fdfec15fadad422c669b6914173787779db243d8de
Contents?: true
Size: 1.03 KB
Versions: 11
Compression:
Stored size: 1.03 KB
Contents
module Pupa module Errors # An abstract class from which all Pupa errors inherit. class Error < StandardError; 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 # 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
11 entries across 11 versions & 1 rubygems