SPL exceptions' class hierarchy may be helpfull for somebody to better understand the whole thing.
Exception
LogicException
BadFunctionCallException
BadMethodCallException
DomainException
InvalidArgumentException
LengthException
OutOfRangeException
RuntimeException
OutOfBoundsException
OverflowException
RangeException
UnderflowException
UnexpectedValueException
Unfortunately the classes are documented rather poorly, without no examples where to use them :(
Exceptions
Table of Contents
- BadFunctionCallException
- BadMethodCallException
- DomainException
- InvalidArgumentException
- LengthException
- LogicException
- OutOfBoundsException
- OutOfRangeException
- OverflowException
- RangeException
- RuntimeException
- UnderflowException
- UnexpectedValueException
SPL provides a set of standard Exceptions.
See also the Predefined Exceptions
Dawid Krysiak
03-Feb-2011 03:25
