From c9c8a20136eeab2ed59e89de2935ec7e6dda3582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20de=20Guillebon?= Date: Thu, 14 Dec 2023 17:52:50 +0100 Subject: [PATCH] feature: add exception interface (#1100) --- Grid/Exception/ColumnAlreadyExistsException.php | 2 +- Grid/Exception/ColumnNotFoundException.php | 2 +- Grid/Exception/ExceptionInterface.php | 7 +++++++ Grid/Exception/InvalidArgumentException.php | 2 +- Grid/Exception/PropertyAccessDeniedException.php | 2 +- Grid/Exception/TypeAlreadyExistsException.php | 2 +- Grid/Exception/TypeNotFoundException.php | 2 +- Grid/Exception/UnexpectedTypeException.php | 2 +- 8 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 Grid/Exception/ExceptionInterface.php diff --git a/Grid/Exception/ColumnAlreadyExistsException.php b/Grid/Exception/ColumnAlreadyExistsException.php index 77fa585a..b4673335 100644 --- a/Grid/Exception/ColumnAlreadyExistsException.php +++ b/Grid/Exception/ColumnAlreadyExistsException.php @@ -7,7 +7,7 @@ * * @author Quentin Ferrer */ -class ColumnAlreadyExistsException extends \InvalidArgumentException +class ColumnAlreadyExistsException extends \InvalidArgumentException implements ExceptionInterface { /** * Constructor. diff --git a/Grid/Exception/ColumnNotFoundException.php b/Grid/Exception/ColumnNotFoundException.php index 7d04745b..439cd5a0 100644 --- a/Grid/Exception/ColumnNotFoundException.php +++ b/Grid/Exception/ColumnNotFoundException.php @@ -7,7 +7,7 @@ * * @author Quentin Ferrer */ -class ColumnNotFoundException extends \InvalidArgumentException +class ColumnNotFoundException extends \InvalidArgumentException implements ExceptionInterface { /** * Constructor. diff --git a/Grid/Exception/ExceptionInterface.php b/Grid/Exception/ExceptionInterface.php new file mode 100644 index 00000000..c46d8459 --- /dev/null +++ b/Grid/Exception/ExceptionInterface.php @@ -0,0 +1,7 @@ +