(PHP 7, PHP 8)
Throwable is the base interface for any object that
can be thrown via a throw
statement, including
Error and Exception.
Note:
PHP classes cannot implement the Throwable interface directly, and must instead extend Exception.
Version | Description |
---|---|
8.0.0 | Throwable implements Stringable now. |