SPL provides a set of standard Exceptions.
Class | Meaning / Use |
---|---|
\BadFunctionCallException |
Exception thrown if a callback refers to an undefined function or if some arguments are missing. |
\BadMethodCallException |
Exception thrown if a callback refers to an undefined method or if some arguments are missing. |
\DomainException |
Exception thrown if a value does not adhere to a defined valid data domain. |
\InvalidArgumentException |
Exception thrown if an argument is not of the expected type. |
\LengthException |
Exception thrown if a length is invalid. |