Exception::getFile

(PHP 5, PHP 7, PHP 8)

Exception::getFileİstisnanın oluştuğu dosyanın adı ile döner

Açıklama

finalpublicException::getFile(): string

İstisnanın oluştuğu dosyanın adı ile döner.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

İstisnanın oluştuğu dosyanın adı ile döner.

Örnekler

Örnek 1 - Exception::getFile() örneği

<?php
try {
throw new
Exception;
} catch(
Exception $e) {
echo
$e->getFile();
}
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

/home/bjori/tmp/ex.php

Ayrıca Bakınız

To Top