Sha256: 90eeb4d0af1ec33f29280a5a3c9af3721aadc5fae22cb93bbc7a4f38db4563cf
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 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 # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pupa-0.0.13 | lib/pupa/errors.rb |
pupa-0.0.12 | lib/pupa/errors.rb |