[nycphp-talk] PHP 5 Error Handling
Scott Mattocks
scott at crisscott.com
Tue Sep 14 08:42:06 EDT 2004
Joseph Crawford wrote:
> now when the error is thrown and i do $e->getLine(); it shows the line
> of the file where the throw statement is. Is there a way to make it
> show the actual line number of the line that is the error? the
> $this->command("NoSuchCommand\n"); line.
>
You could use $e->getTrace() but that may be more information than you
were looking for.
Scott Mattocks
More information about the talk
mailing list