array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'class.exception.php', 1 => 'Exception', ), 'up' => array ( 0 => 'reserved.exceptions.php', 1 => 'Predefined Exceptions', ), 'prev' => array ( 0 => 'reserved.exceptions.php', 1 => 'Predefined Exceptions', ), 'next' => array ( 0 => 'exception.construct.php', 1 => 'Exception::__construct', ), 'alternatives' => array ( ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.exception.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["parents"] = $PARENTS; manual_setup($setup); ?>

Exception

(PHP 5 >= 5.1.0)

Introduction

Exception is the base class for all Exceptions.

Class synopsis

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

Properties

message

The exception message

code

The exception code

file

The filename where the exception was created

line

The line where the exception was created

Table of Contents