From 8a3c5e7941ca4f15e319d611947803717b62442a Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Tue, 24 Apr 2012 23:05:00 +0200 Subject: [PATCH] Harmonize exceptions --- .../Exception/BinaryNotFoundException.php | 2 +- src/FFMpeg/Exception/Exception.php | 17 +++++++++++++++++ .../Exception/InvalidFileArgumentException.php | 2 +- src/FFMpeg/Exception/LogicException.php | 2 +- src/FFMpeg/Exception/RuntimeException.php | 2 +- 5 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 src/FFMpeg/Exception/Exception.php diff --git a/src/FFMpeg/Exception/BinaryNotFoundException.php b/src/FFMpeg/Exception/BinaryNotFoundException.php index 8441486..d55f78a 100644 --- a/src/FFMpeg/Exception/BinaryNotFoundException.php +++ b/src/FFMpeg/Exception/BinaryNotFoundException.php @@ -11,7 +11,7 @@ namespace FFMpeg\Exception; -class BinaryNotFoundException extends \Exception +class BinaryNotFoundException extends \Exception implements Exception { } diff --git a/src/FFMpeg/Exception/Exception.php b/src/FFMpeg/Exception/Exception.php new file mode 100644 index 0000000..90944d8 --- /dev/null +++ b/src/FFMpeg/Exception/Exception.php @@ -0,0 +1,17 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace FFMpeg\Exception; + +interface Exception +{ + +} diff --git a/src/FFMpeg/Exception/InvalidFileArgumentException.php b/src/FFMpeg/Exception/InvalidFileArgumentException.php index 1be9889..f6dd0a1 100644 --- a/src/FFMpeg/Exception/InvalidFileArgumentException.php +++ b/src/FFMpeg/Exception/InvalidFileArgumentException.php @@ -11,7 +11,7 @@ namespace FFMpeg\Exception; -class InvalidFileArgumentException extends \InvalidArgumentException +class InvalidFileArgumentException extends \InvalidArgumentException implements Exception { } diff --git a/src/FFMpeg/Exception/LogicException.php b/src/FFMpeg/Exception/LogicException.php index f70b350..0f060bc 100644 --- a/src/FFMpeg/Exception/LogicException.php +++ b/src/FFMpeg/Exception/LogicException.php @@ -11,7 +11,7 @@ namespace FFMpeg\Exception; -class LogicException extends \LogicException +class LogicException extends \LogicException implements Exception { } diff --git a/src/FFMpeg/Exception/RuntimeException.php b/src/FFMpeg/Exception/RuntimeException.php index d5a9a4a..8b990a6 100644 --- a/src/FFMpeg/Exception/RuntimeException.php +++ b/src/FFMpeg/Exception/RuntimeException.php @@ -11,7 +11,7 @@ namespace FFMpeg\Exception; -class RuntimeException extends \RuntimeException +class RuntimeException extends \RuntimeException implements Exception { }