-
Notifications
You must be signed in to change notification settings - Fork 0
API: The SplFault Class
Faults representing the Spl Exception types.
A callback refers to an undefined function or some arguments are missing.
A callback refers to an undefined method or some arguments are missing.
A value does not adhere to a defined valid data domain.
An argument is not of the expected type.
A length is invalid.
An error in the program logic. This should lead directly to a fix in your code.
A value is not a valid key.
An illegal index was requested.
An attempt to add an element to a full container.
A range error at runtime. Typically, an arithmetic error other than under/overflow.
An error which is only found at runtime - i.e., not detectable via static analysis.
An invalid operation on an empty container, such as removing an element.
A value does not match with a set of values.
Corresponding Exceptable classes are provided for each SplFault case. Each also extends from the core SPL exception class of the same name, sharing semantic meaning and allowing interoperability with code that is unaware of the exceptable types.
-
at\exceptable\Spl\BadFunctionCallExceptionextendsBadFunctionCallException -
at\exceptable\Spl\BadMethodCallExceptionextendsBadMethodCallException -
at\exceptable\Spl\DomainExceptionextendsDomainException -
at\exceptable\Spl\InvalidArgumentExceptionextendsInvalidArgumentException -
at\exceptable\Spl\LengthExceptionextendsLengthException -
at\exceptable\Spl\LogicExceptionextendsLogicException -
at\exceptable\Spl\OutOfBoundsExceptionextendsOutOfBoundsException -
at\exceptable\Spl\OutOfRangeExceptionextendsOutOfRangeException -
at\exceptable\Spl\OverflowExceptionextendsOverflowException -
at\exceptable\Spl\RangeExceptionextendsRangeException -
at\exceptable\Spl\RuntimeExceptionextendsRuntimeException -
at\exceptable\Spl\UnderflowExceptionextendsUnderflowException -
at\exceptable\Spl\UnexpectedValueExceptionextendsUnexpectedValueException