Skip to content

Commit

Permalink
feature: add exception interface (#1100)
Browse files Browse the repository at this point in the history
  • Loading branch information
deguif committed Dec 14, 2023
1 parent 970e7f8 commit c9c8a20
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Grid/Exception/ColumnAlreadyExistsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Quentin Ferrer
*/
class ColumnAlreadyExistsException extends \InvalidArgumentException
class ColumnAlreadyExistsException extends \InvalidArgumentException implements ExceptionInterface
{
/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Grid/Exception/ColumnNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Quentin Ferrer
*/
class ColumnNotFoundException extends \InvalidArgumentException
class ColumnNotFoundException extends \InvalidArgumentException implements ExceptionInterface
{
/**
* Constructor.
Expand Down
7 changes: 7 additions & 0 deletions Grid/Exception/ExceptionInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

namespace APY\DataGridBundle\Grid\Exception;

interface ExceptionInterface extends \Throwable
{
}
2 changes: 1 addition & 1 deletion Grid/Exception/InvalidArgumentException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
*
* @author Quentin Ferrer
*/
class InvalidArgumentException extends \InvalidArgumentException
class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion Grid/Exception/PropertyAccessDeniedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

namespace APY\DataGridBundle\Grid\Exception;

class PropertyAccessDeniedException extends \RuntimeException
class PropertyAccessDeniedException extends \RuntimeException implements ExceptionInterface
{
}
2 changes: 1 addition & 1 deletion Grid/Exception/TypeAlreadyExistsException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Quentin Ferrer
*/
class TypeAlreadyExistsException extends \InvalidArgumentException
class TypeAlreadyExistsException extends \InvalidArgumentException implements ExceptionInterface
{
/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Grid/Exception/TypeNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Quentin Ferrer
*/
class TypeNotFoundException extends \InvalidArgumentException
class TypeNotFoundException extends \InvalidArgumentException implements ExceptionInterface
{
/**
* Constructor.
Expand Down
2 changes: 1 addition & 1 deletion Grid/Exception/UnexpectedTypeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* @author Quentin Ferrer
*/
class UnexpectedTypeException extends \InvalidArgumentException
class UnexpectedTypeException extends \InvalidArgumentException implements ExceptionInterface
{
/**
* Constructor.
Expand Down

0 comments on commit c9c8a20

Please sign in to comment.