aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/fileset_types.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-11 11:01:38 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-15 18:15:29 -0700
commit2e285e469251125ee70bc4c3408dbbcad8701b2c (patch)
tree6902a89a29d547cad1e7362ffef2cfe565e52d44 /python/sandcrawler/fileset_types.py
parent7a98b12907cff5f6d4a56898b49703289127df21 (diff)
downloadsandcrawler-2e285e469251125ee70bc4c3408dbbcad8701b2c.tar.gz
sandcrawler-2e285e469251125ee70bc4c3408dbbcad8701b2c.zip
fileset ingest: improve error handling
Diffstat (limited to 'python/sandcrawler/fileset_types.py')
-rw-r--r--python/sandcrawler/fileset_types.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/python/sandcrawler/fileset_types.py b/python/sandcrawler/fileset_types.py
index 51000d7..9fe8b0d 100644
--- a/python/sandcrawler/fileset_types.py
+++ b/python/sandcrawler/fileset_types.py
@@ -42,3 +42,21 @@ class ArchiveStrategyResult(BaseModel):
ingest_strategy: str
status: str
manifest: List[FilesetManifestFile]
+
+class PlatformScopeError(Exception):
+ """
+ For incidents where platform helper discovers that the fileset/dataset is
+ out-of-cope after already starting to process it.
+
+ For example, attempting to ingest:
+
+ - a 'latest version' record, when the platform has version-specific records
+ - a single file within a dataset for a platform which has file-level identifiers
+ """
+ pass
+
+class PlatformRestrictedError(Exception):
+ """
+ When datasets are not publicly available on a platform (yet)
+ """
+ pass