Skip to content

Commit c9c8a20

Browse files
authored
feature: add exception interface (#1100)
1 parent 970e7f8 commit c9c8a20

8 files changed

+14
-7
lines changed

Grid/Exception/ColumnAlreadyExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author Quentin Ferrer
99
*/
10-
class ColumnAlreadyExistsException extends \InvalidArgumentException
10+
class ColumnAlreadyExistsException extends \InvalidArgumentException implements ExceptionInterface
1111
{
1212
/**
1313
* Constructor.

Grid/Exception/ColumnNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author Quentin Ferrer
99
*/
10-
class ColumnNotFoundException extends \InvalidArgumentException
10+
class ColumnNotFoundException extends \InvalidArgumentException implements ExceptionInterface
1111
{
1212
/**
1313
* Constructor.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
namespace APY\DataGridBundle\Grid\Exception;
4+
5+
interface ExceptionInterface extends \Throwable
6+
{
7+
}

Grid/Exception/InvalidArgumentException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
*
88
* @author Quentin Ferrer
99
*/
10-
class InvalidArgumentException extends \InvalidArgumentException
10+
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
1111
{
1212
}

Grid/Exception/PropertyAccessDeniedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
namespace APY\DataGridBundle\Grid\Exception;
44

5-
class PropertyAccessDeniedException extends \RuntimeException
5+
class PropertyAccessDeniedException extends \RuntimeException implements ExceptionInterface
66
{
77
}

Grid/Exception/TypeAlreadyExistsException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author Quentin Ferrer
99
*/
10-
class TypeAlreadyExistsException extends \InvalidArgumentException
10+
class TypeAlreadyExistsException extends \InvalidArgumentException implements ExceptionInterface
1111
{
1212
/**
1313
* Constructor.

Grid/Exception/TypeNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author Quentin Ferrer
99
*/
10-
class TypeNotFoundException extends \InvalidArgumentException
10+
class TypeNotFoundException extends \InvalidArgumentException implements ExceptionInterface
1111
{
1212
/**
1313
* Constructor.

Grid/Exception/UnexpectedTypeException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
* @author Quentin Ferrer
99
*/
10-
class UnexpectedTypeException extends \InvalidArgumentException
10+
class UnexpectedTypeException extends \InvalidArgumentException implements ExceptionInterface
1111
{
1212
/**
1313
* Constructor.

0 commit comments

Comments
 (0)