| Exception | Description |
|---|---|
| CorruptChecksumException |
Class to represent an error when the calculated checksum is different than the manifest specified checksum.
|
| FileNotInManifestException |
Class to represent an error when a file is found in the payload directory but not in any manifest.
|
| FileNotInPayloadDirectoryException |
Class to represent an error when a file is not in the payload directory but is listed in a manifest.
|
| InvalidBagitFileFormatException |
Class to represent an error when a specific bag file does not conform to its bagit specfication format
|
| InvalidBagMetadataException |
Class to represent an error when the bag metadata file does not conform to the bagit spec,
namely:
<KEY>:<VALUE> or |
| InvalidPayloadOxumException |
Class to represent an error when the calculated total bytes or number of files for
the payload-oxum is different than the supplied values.
|
| MaliciousPathException |
Class to represent an error when the path in a manifest or fetch file has been crafted to point to a file or
directory outside the bag.
|
| MissingBagitFileException |
The bagit.txt file is a required file.
|
| MissingPayloadDirectoryException |
The payload directory is a required file.
|
| MissingPayloadManifestException |
A bagit bag needs at least one payload manifest.
|
| PayloadOxumDoesNotExistException |
The
Bag object should contain the Payload-Oxum metatdata key value pair,
this class represents the error when trying to calculate the payload-oxum and it doesn't exist on the bag object. |
| UnparsableVersionException |
If the version string in the bagit.txt file was not in the form <MAJOR>.<MINOR>
|
| UnsupportedAlgorithmException |
When the bag uses an checksum algorithm that is not supported by
MessageDigest. |
| VerificationException |
Class to represent an generic exception that happened during verification.
|