My Project
 All Data Structures Namespaces Functions Variables
Public Member Functions | Data Fields
CI_Exceptions Class Reference

Public Member Functions

 __construct ()
 
 log_exception ($severity, $message, $filepath, $line)
 
 show_404 ($page= '', $log_error=TRUE)
 
 show_error ($heading, $message, $template= 'error_general', $status_code=500)
 
 show_php_error ($severity, $message, $filepath, $line)
 

Data Fields

 $action
 
 $severity
 
 $message
 
 $filename
 
 $line
 
 $ob_level
 
 $levels
 

Constructor & Destructor Documentation

__construct ( )

Constructor

Member Function Documentation

log_exception (   $severity,
  $message,
  $filepath,
  $line 
)

Exception Logger

This function logs PHP generated error messages

private

Parameters
stringthe error severity
stringthe error string
stringthe error filepath
stringthe error line number
Returns
string
show_404 (   $page = '',
  $log_error = TRUE 
)

404 Page Not Found Handler

private

Parameters
stringthe page
boollog error yes/no
Returns
string
show_error (   $heading,
  $message,
  $template = 'error_general',
  $status_code = 500 
)

General Error Page

This function takes an error message as input (either as a string or an array) and displays it using the specified template.

private

Parameters
stringthe heading
stringthe message
stringthe template name
intthe status code
Returns
string
show_php_error (   $severity,
  $message,
  $filepath,
  $line 
)

Native PHP error handler

private

Parameters
stringthe error severity
stringthe error string
stringthe error filepath
stringthe error line number
Returns
string

Field Documentation

$levels
Initial value:
= array(
E_ERROR => 'Error',
E_WARNING => 'Warning',
E_PARSE => 'Parsing Error',
E_NOTICE => 'Notice',
E_CORE_ERROR => 'Core Error',
E_CORE_WARNING => 'Core Warning',
E_COMPILE_ERROR => 'Compile Error',
E_COMPILE_WARNING => 'Compile Warning',
E_USER_ERROR => 'User Error',
E_USER_WARNING => 'User Warning',
E_USER_NOTICE => 'User Notice',
E_STRICT => 'Runtime Notice'
)

The documentation for this class was generated from the following file: