downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Exception::getLine> <Exception::getCode
[edit] Last updated: Fri, 07 Jun 2013

view this page in

Exception::getFile

(PHP 5 >= 5.1.0)

Exception::getFileObtiene el fichero en el que ocurrió la excepción

Descripción

final public string Exception::getFile ( void )

Obtiene el nombre del fichero desde donde fue creada la excepción.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

Devuelve el nombre del fichero en donde fue creada la excepción.

Ejemplos

Ejemplo #1 Ejemplo de Exception::getFile()

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

El resultado del ejemplo sería algo similar a:

/home/bjori/tmp/ex.php



add a note add a note User Contributed Notes Exception::getFile - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites