Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: patError

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class patError

Description

patError error object used by the patFormsError manager as error messages container for precise error management.

$Id: patError.php 8287 2007-08-01 08:38:59Z eddieajau $

Located in /pattemplate/patError.php (line 27)

Class patError
Method Summary
Constructor patError __construct (int $level, string $code, string $msg, [string $info = null])
Constructor patError patError (int $level, string $code, string $msg, [string $info = null])
Method array getBacktrace ([ $formatted = false])
Method string|integer getCode ()
Method string getFile ()
Method mixed getInfo ()
Method int getLevel ()
Method integer getLine ()
Method string getMessage ()
Methods
Constructor __construct (line 147)

constructor - used to set up the error with all needed error details.

  • todo: all calls to patErrorManager::raise* should not be included in backtrace
  • access: public
patError __construct (int $level, string $code, string $msg, [string $info = null])
  • 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.
Constructor patError (line 132)

constructor, wrapper for the upcoming PHP5 constructors for upward compatibility.

patError patError (int $level, string $code, string $msg, [string $info = null])
  • 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.
getBacktrace (line 255)

get the backtrace

This is only possible, if debug_backtrace() is available.

  • return: backtrace
  • see: $backtrace
  • access: public
array getBacktrace ([ $formatted = false])
  • $formatted
getCode (line 241)

recieve error code

  • return: error code (may be a string or an integer)
  • see: $code
  • access: public
string|integer getCode ()
getFile (line 278)

get the filename in which the error occured

This is only possible, if debug_backtrace() is available.

  • return: filename
  • see: $file
  • access: public
string getFile ()
getInfo (line 229)

retrieves the additional error information (information usually only relevant for developers)

  • return: The additional information
  • see: $info
  • access: public
mixed getInfo ()
getLevel (line 203)

returns the error level of the error - corresponds to the PHP error levels (E_ALL, E_NOTICE...)

  • return: The error level
  • see: $level
  • access: public
int getLevel ()
getLine (line 292)

get the line number in which the error occured

This is only possible, if debug_backtrace() is available.

  • return: line number
  • see: $line
  • access: public
integer getLine ()
getMessage (line 216)

retrieves the error message

  • return: The stored error message
  • see: $message
  • access: public
string getMessage ()

Documentation generated on Tue, 29 Jan 2008 18:48:58 +0000 by phpDocumentor 1.3.1