Class jBasicErrorHandler

Description

Error handlers for the framework.

Replace the default PHP error handler

Located in /core/jBasicErrorHandler.class.php (line 22)


	
			
Variable Summary
static mixed $errorCode
static mixed $initErrorMessages
Method Summary
static void errorHandler (integer $errno, string $errmsg, string $filename, integer $linenum, array $errcontext)
static void exceptionHandler (Exception $e)
static void handleError ( $type,  $code,  $message,  $file,  $line,  $trace)
static void register ()
Variables
static mixed $errorCode = array(
E_ERROR => 'error',
E_RECOVERABLE_ERROR => 'error',
E_WARNING => 'warning',
E_NOTICE => 'notice',
E_DEPRECATED => 'deprecated',
E_USER_ERROR => 'error',
E_USER_WARNING => 'warning',
E_USER_NOTICE => 'notice',
E_USER_DEPRECATED => 'deprecated',
E_STRICT => 'strict'
)
(line 24)
static mixed $initErrorMessages = array() (line 84)
  • access: public
Methods
static errorHandler (line 51)

Error handler showing a simple error page Replace the default PHP error handler.

static void errorHandler (integer $errno, string $errmsg, string $filename, integer $linenum, array $errcontext)
  • integer $errno: error code
  • string $errmsg: error message
  • string $filename: filename where the error appears
  • integer $linenum: line number where the error appears
  • array $errcontext
static exceptionHandler (line 79)

Exception handler showing a simple error page

Replace the default PHP Exception handler

static void exceptionHandler (Exception $e)
  • Exception $e: the exception object
static handleError (line 86)
static void handleError ( $type,  $code,  $message,  $file,  $line,  $trace)
  • $type
  • $code
  • $message
  • $file
  • $line
  • $trace
static register (line 37)
static void register ()

Documentation generated on Mon, 26 Oct 2015 21:51:49 +0100 by phpDocumentor 1.4.3