Error::getFile
(No version information available, might only be in Git)
Error::getFile — Gets the file in which the error occurred
説明
final public Error::getFile
( void
) : string
Get the name of the file the error occurred.
パラメータ
この関数にはパラメータはありません。
返り値
Returns the filename in which the error occurred.
例
例1 Error::getFile() example
<?php
try {
throw new Error;
} catch(Error $e) {
echo $e->getFile();
}
?>
上の例の出力は、 たとえば以下のようになります。
/home/bjori/tmp/ex.php