CI_Exceptions Class Reference

List of all members.

Public Member Functions

 CI_Exceptions ()
 log_exception ($severity, $message, $filepath, $line)
 show_404 ($page= '')
 show_error ($heading, $message, $template= 'error_general')
 show_php_error ($severity, $message, $filepath, $line)

Public Attributes

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


Member Function Documentation

CI_Exceptions::CI_Exceptions (  ) 

Constructor

CI_Exceptions::log_exception ( severity,
message,
filepath,
line 
)

Exception Logger

This function logs PHP generated error messages

private

Parameters:
string the error severity
string the error string
string the error filepath
string the error line number
Returns:
string

CI_Exceptions::show_404 ( page = ''  ) 

404 Page Not Found Handler

private

Parameters:
string 
Returns:
string

CI_Exceptions::show_error ( heading,
message,
template = 'error_general' 
)

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:
string the heading
string the message
string the template name
Returns:
string

CI_Exceptions::show_php_error ( severity,
message,
filepath,
line 
)

Native PHP error handler

private

Parameters:
string the error severity
string the error string
string the error filepath
string the error line number
Returns:
string


Member Data Documentation

CI_Exceptions::$action

CI_Exceptions::$filename

CI_Exceptions::$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'
                                        )

CI_Exceptions::$line

CI_Exceptions::$message

CI_Exceptions::$ob_level

CI_Exceptions::$severity


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

Generated on Sun Nov 16 16:09:14 2008 for CodeIgniter by  doxygen 1.5.7.1