Exception::getCode
Exception::getLine
Exception
PHP Manual

# Exception::getFile

(PHP 5 >= 5.1.0)

Exception::getFile — Gets the file in which the exception occurred

### Descripción

final public string Exception::getFile ( void )

Get the name of the file the exception was thrown from.

### Lista de parámetros

This function has no parameters.

### Valores retornados

Returns the filename in which the exception was thrown.

### Ejemplos

Example #1 Exception::getFile() example

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

El resultado del ejemplo seria algo similar a:

    /home/bjori/tmp/ex.php

Exception::getCode
Exception::getLine
Exception
PHP Manual