array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.throwable.php', 1 => 'Throwable', ), 'up' => array ( 0 => 'reserved.interfaces.php', 1 => 'Predefined Interfaces and Classes', ), 'prev' => array ( 0 => 'internaliterator.valid.php', 1 => 'InternalIterator::valid', ), 'next' => array ( 0 => 'throwable.getmessage.php', 1 => 'Throwable::getMessage', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/throwable.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.throwable.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(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. |