1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00

Merge pull request #97 from async-interop/issue-93

Change exception base classes to Exception
This commit is contained in:
Bob Weinand 2016-09-21 21:29:32 +02:00 committed by GitHub
commit a31f5188cc
2 changed files with 7 additions and 6 deletions

View File

@ -3,10 +3,11 @@
namespace Interop\Async\Loop; namespace Interop\Async\Loop;
/** /**
* MUST be thrown if any operation (except cancel()) is attempted with an invalid watcher identifier. An invalid watcher * MUST be thrown if any operation (except disable() and cancel()) is attempted with an invalid watcher identifier.
* identifier is any identifier that is not yet emitted by the driver or cancelled by the user. *
* 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
{ {
} }

View File

@ -3,11 +3,11 @@
namespace Interop\Async\Loop; 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
{ {
} }