diff options
| author | Marcus Boerger <helly@php.net> | 2004-11-01 17:39:59 +0000 |
|---|---|---|
| committer | Marcus Boerger <helly@php.net> | 2004-11-01 17:39:59 +0000 |
| commit | bd40510b62d0d63a16b120a2ef102742967335d7 (patch) | |
| tree | 7b03d6b811e4b445ecc02fa6df731242b7ef923d /ext/spl/spl.php | |
| parent | 623f564abc5d7165c4cfadadb7f8a98ce33ee857 (diff) | |
| download | php-git-bd40510b62d0d63a16b120a2ef102742967335d7.tar.gz | |
- Two new exceptions
- Make use of new exception classes
Diffstat (limited to 'ext/spl/spl.php')
| -rwxr-xr-x | ext/spl/spl.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/spl/spl.php b/ext/spl/spl.php index 027bf25a20..5f5d721b72 100755 --- a/ext/spl/spl.php +++ b/ext/spl/spl.php @@ -146,6 +146,20 @@ class LogicException extends Exception } /** @ingroup SPL + * @brief Exception thrown when a function call was illegal. + */ +class BadFunctionCallException extends LogicException +{ +} + +/** @ingroup SPL + * @brief Exception thrown when a method call was illegal. + */ +class BadMethodCallException extends BadFunctionCallException +{ +} + +/** @ingroup SPL * @brief Exception that denotes a value not in the valid domain was used. * * This kind of exception should be used to inform about domain erors in |
