diff --git a/src/pg_rad/exceptions/__init__.py b/src/pg_rad/exceptions/__init__.py index 426b7e7..99b24a1 100644 --- a/src/pg_rad/exceptions/__init__.py +++ b/src/pg_rad/exceptions/__init__.py @@ -4,7 +4,7 @@ __ignore__ = ["logger"] from pg_rad.exceptions import exceptions from pg_rad.exceptions.exceptions import (ConvergenceError, DataLoadError, - InvalidCSVError,) + InvalidCSVError, OutOfBoundsError,) __all__ = ['ConvergenceError', 'DataLoadError', 'InvalidCSVError', - 'exceptions'] + 'OutOfBoundsError', 'exceptions'] diff --git a/src/pg_rad/exceptions/exceptions.py b/src/pg_rad/exceptions/exceptions.py index 60a1b34..dc8c3eb 100644 --- a/src/pg_rad/exceptions/exceptions.py +++ b/src/pg_rad/exceptions/exceptions.py @@ -8,3 +8,7 @@ class DataLoadError(Exception): class InvalidCSVError(DataLoadError): """Raised when a file is not a valid CSV.""" + + +class OutOfBoundsError(Exception): + """Raised when an object is attempted to be placed out of bounds."""