Class patError

Description

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

$Id: patError.php,v 1.1 2004/12/24 04:06:30 eddieajau Exp $

Located in /includes/patTemplate/patError.php (line 27)


	
			
Method Summary
patError __construct (int $level, string $code, string $msg, [string $info = null])
patError patError (int $level, string $code, string $msg, [string $info = null])
array getBacktrace ([mixed $formatted = false])
string|integer getCode ()
string getFile ()
mixed getInfo ()
int getLevel ()
integer getLine ()
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 ([mixed $formatted = false])
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 Fri, 4 Mar 2005 13:56:50 +1000 by phpDocumentor 1.3.0RC3