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

search for in the

Exception::__construct> <Exceções pré-definidas
[edit] Last updated: Fri, 24 Feb 2012

view this page in

Exception

(PHP 5 >= 5.1.0)

Introdução

Exception é a classe base para todas Exceptions.

Sinopse da classe

Exception {
/* Properties */
protected string $Exception->message ;
private string $string ;
protected int $code ;
protected string $file ;
protected int $line ;
private array $trace ;
/* Methods */
public Exception::__construct ([ string $message = NULL [, int $code ]] )
final public string Exception::getMessage ( void )
final public int Exception::getCode ( void )
final public string Exception::getFile ( void )
final public string Exception::getLine ( void )
final public array Exception::getTrace ( void )
final public string Exception::getTraceAsString ( void )
public string Exception::__toString ( void )
final private string Exception::__clone ( void )
}

Propriedades

message

A mensagem da exceção

string

Nome interno da exceção

code

O código da exceção

file

O nome do arquivo onde a exceção foi disparada

line

A linha onde a exceção foi disparada

trace

A stack trace

Índice



add a note add a note User Contributed Notes Exception
derak dot kilgo at esc13 dot txed dot net 25-Apr-2012 12:37
The 'previous' parameter first appeared in php > 5.3.0
taras dot dot dot di at gmail dot com 22-Jul-2008 01:08
Note that the default message is an empty string, and the default code is zero

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