Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Joomla-Framework

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

 Class JException

Description

Joomla! Exception object.

This class is inspired in design and concept by patError <http://www.php-tools.net>

patError contributors include:

Located in /joomla/utilities/error.php (line 594)

Class JObject   (Subpackage Base)

Class JException   (Subpackage Utilities)
Variable Summary
Variable array $args
Variable mixed $backtrace
Variable string $class
Variable string $code
Variable string $file
Variable string $function
Variable string $info
Variable string $level
Variable int $line
Variable string $message
Variable string $type
Method Summary
Constructor JException __construct (int $level, string $code, string $msg, [string $info = null], [ $backtrace = false])
Method array getBacktrace ([ $formatted = false])
Variables
array $args = array() (line 655)

Arguments recieved by the method the error occurred in [Available if backtrace is enabled]

mixed $backtrace = false (line 661)

Backtrace information

string $class = null (line 643)

Name of the class the error occurred in [Available if backtrace is enabled]

string $code = null (line 606)

Error code

string $file = null (line 625)

Name of the file the error occurred in [Available if backtrace is enabled]

string $function = null (line 637)

Name of the method the error occurred in [Available if backtrace is enabled]

string $info = '' (line 619)

Additional info about the error relevant to the developer

  • e.g. if a database connect fails, the dsn used

string $level = null (line 600)

Error level

int $line = 0 (line 631)

Line number the error occurred in [Available if backtrace is enabled]

string $message = null (line 612)

Error message

string $type = null (line 649)

Error type

Methods
Constructor __construct (line 673)

Constructor

  • used to set up the error with all needed error details.

  • access: protected
JException __construct (int $level, string $code, string $msg, [string $info = null], [ $backtrace = false])
  • int $level: The error level (use the PHP constants E_ALL, E_NOTICE etc.).
  • string $code: The error code from the application
  • string $msg: The error message
  • string $info: Optional: The additional error information.
  • $backtrace

Redefinition of:
JObject::__construct()
Class constructor, overridden in descendant classes.
getBacktrace (line 716)

Method to get the backtrace information for an exception object

  • return: backtrace
  • since: 1.5
  • access: public
array getBacktrace ([ $formatted = false])
  • $formatted

Inherited Methods

Inherited From JObject

 JObject::JObject()
 JObject::__construct()
 JObject::get()
 JObject::getPublicProperties()
 JObject::set()
 JObject::toString()

Documentation generated on Mon, 05 Mar 2007 20:57:49 +0000 by phpDocumentor 1.3.1