From 8b518e430d70dd31e382e362c129b6c71beda5f2 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 11 Jan 2013 12:39:56 +0100 Subject: [PATCH] Add Github\Exception\ExceptionInterface --- lib/Github/Exception/ErrorException.php | 2 +- lib/Github/Exception/ExceptionInterface.php | 8 ++++++++ lib/Github/Exception/InvalidArgumentException.php | 2 +- lib/Github/Exception/RuntimeException.php | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 lib/Github/Exception/ExceptionInterface.php diff --git a/lib/Github/Exception/ErrorException.php b/lib/Github/Exception/ErrorException.php index 30290ff9d4a..dbc0056ef56 100644 --- a/lib/Github/Exception/ErrorException.php +++ b/lib/Github/Exception/ErrorException.php @@ -7,7 +7,7 @@ * * @author Joseph Bielawski */ -class ErrorException extends \ErrorException +class ErrorException extends \ErrorException implements ExceptionInterface { } diff --git a/lib/Github/Exception/ExceptionInterface.php b/lib/Github/Exception/ExceptionInterface.php new file mode 100644 index 00000000000..5984e3a4e75 --- /dev/null +++ b/lib/Github/Exception/ExceptionInterface.php @@ -0,0 +1,8 @@ + */ -class InvalidArgumentException extends \InvalidArgumentException +class InvalidArgumentException extends \InvalidArgumentException implements ExceptionInterface { } diff --git a/lib/Github/Exception/RuntimeException.php b/lib/Github/Exception/RuntimeException.php index b32da0ea5cc..d3cc9fdeebc 100644 --- a/lib/Github/Exception/RuntimeException.php +++ b/lib/Github/Exception/RuntimeException.php @@ -7,7 +7,7 @@ * * @author Joseph Bielawski */ -class RuntimeException extends \RuntimeException +class RuntimeException extends \RuntimeException implements ExceptionInterface { }