Исключения
Библиотека SPL предоставляет набор стандартных исключений.
Иерархия классов исключений библиотеки SPL
LogicException (extends Exception)
BadFunctionCallException
BadMethodCallException
DomainException
InvalidArgumentException
LengthException
OutOfRangeException
RuntimeException (extends Exception)
OutOfBoundsException
OverflowException
RangeException
UnderflowException
UnexpectedValueException
&reference.spl.badfunctioncallexception;
&reference.spl.badmethodcallexception;
&reference.spl.domainexception;
&reference.spl.invalidargumentexception;
&reference.spl.lengthexception;
&reference.spl.logicexception;
&reference.spl.outofboundsexception;
&reference.spl.outofrangeexception;
&reference.spl.overflowexception;
&reference.spl.rangeexception;
&reference.spl.runtimeexception;
&reference.spl.underflowexception;
&reference.spl.unexpectedvalueexception;