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 { }