From 32286779535feaabf0c92624fd8ebb7aa3c0791d Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Wed, 21 Sep 2016 18:05:59 +0200 Subject: [PATCH] Change exception base classes to Exception Resolves #93. --- src/Loop/InvalidWatcherException.php | 7 ++++--- src/Loop/UnsupportedFeatureException.php | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Loop/InvalidWatcherException.php b/src/Loop/InvalidWatcherException.php index 06360dd..80cdf7d 100644 --- a/src/Loop/InvalidWatcherException.php +++ b/src/Loop/InvalidWatcherException.php @@ -3,10 +3,11 @@ namespace Interop\Async\Loop; /** - * MUST be thrown if any operation (except cancel()) is attempted with an invalid watcher identifier. An invalid watcher - * identifier is any identifier that is not yet emitted by the driver or cancelled by the user. + * MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid watcher identifier. + * + * An invalid watcher identifier is any identifier that is not yet emitted by the driver or cancelled by the user. */ -class InvalidWatcherException extends \LogicException +class InvalidWatcherException extends \Exception { } diff --git a/src/Loop/UnsupportedFeatureException.php b/src/Loop/UnsupportedFeatureException.php index 03c8c9c..bfc93c7 100644 --- a/src/Loop/UnsupportedFeatureException.php +++ b/src/Loop/UnsupportedFeatureException.php @@ -3,11 +3,11 @@ namespace Interop\Async\Loop; /** - * Must be thrown if a feature is not supported by the system. + * MUST be thrown if a feature is not supported by the system. * - * This might happen if PCNTL is missing and the loop driver doesn't support another way to dispatch signals. + * This might happen if ext-pcntl is missing and the loop driver doesn't support another way to dispatch signals. */ -class UnsupportedFeatureException extends \RuntimeException +class UnsupportedFeatureException extends \Exception { }