array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'throwable.getcode.php', 1 => 'Throwable::getCode', 2 => 'Gets the exception code', ), 'up' => array ( 0 => 'class.throwable.php', 1 => 'Throwable', ), 'prev' => array ( 0 => 'throwable.getmessage.php', 1 => 'Throwable::getMessage', ), 'next' => array ( 0 => 'throwable.getfile.php', 1 => 'Throwable::getFile', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'language/predefined/throwable/getcode.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 7, PHP 8)
Throwable::getCode — Gets the exception code
У цієї функції немає параметрів.
Returns the exception code as int in Exception but possibly as other type in Exception descendants (for example as string in PDOException).