diff options
| author | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-01 11:17:26 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi <fredmanglis@gmail.com> | 2026-10-01 11:17:26 -0500 |
| commit | 8cb65f8a5ab6229322aac0c67833c9801cd42ca6 (patch) | |
| tree | d00938081efe182aed34b67e7b9182db1521b363 /uploader/dataerrors.py | |
| parent | 12b60ed226307192dc44cb9648cb769dd103f6f5 (diff) | |
| download | gn-uploader-8cb65f8a5ab6229322aac0c67833c9801cd42ca6.tar.gz | |
Have consistent interface for "dataset_by_id" functions.
Diffstat (limited to 'uploader/dataerrors.py')
| -rw-r--r-- | uploader/dataerrors.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/uploader/dataerrors.py b/uploader/dataerrors.py new file mode 100644 index 0000000..5f0c455 --- /dev/null +++ b/uploader/dataerrors.py @@ -0,0 +1,10 @@ +"""Data-specific exceptions/errors.""" + +class DataError(Exception): + """Generic data error. You probably shouldn't use this.""" + description: str = "Generic data error." + + +class NotFoundError(DataError): + """Data was not found.""" + description: str = "Specified data was not found." |
