From 4f72fe8ff488989b220afcada2738a0f289aab33 Mon Sep 17 00:00:00 2001 From: Pim Nelissen Date: Thu, 12 Feb 2026 14:02:13 +0100 Subject: [PATCH] Add OutOfBoundsError --- src/pg_rad/exceptions/__init__.py | 4 ++-- src/pg_rad/exceptions/exceptions.py | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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."""