Exception::getCode
例外コードを取得する
&reftitle.description;
final public intException::getCode
例外コードを返します。
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
例外コードを整数値で返します。しかし、
Exception クラスを継承したクラスでは、違う型を返すこともあります
(たとえば PDOException は文字列を返します)。
&reftitle.examples;
Exception::getCode の例
getCode();
}
?>
]]>
&example.outputs.similar;
&reftitle.seealso;
Throwable::getCode