Class CI_Exceptions - echiong/testRepo GitHub Wiki
##Class CI_Exceptions
Exceptions Class
Package: [[CodeIgniter<a href="Package CodeIgniter.Libraries.md">Libraries]]
Category:
Exceptions
Author:
ExpressionEngine Dev Team
Link:
http://codeigniter.com/user_guide/libraries/exceptions.html
Located at system/core/Exceptions.php
##Methods summary
public __construct ( )
Constructor
public string log_exception ( string $severity, string $message, string $filepath, string $line )
Exception Logger
This function logs PHP generated error messages
Parameters
$severity
string
the error severity
$message
string
the error string
$filepath
string
the error filepath
$line
string
the error line number
Returns
string
public string show_404 ( string $page = '', boolean $log_error = TRUE )
404 Page Not Found Handler
Parameters
$page
string
the page
$log_error
boolean
log error yes/no
Returns
string
public string show_error ( string $heading, string $message, string $template = 'error_general', integer $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.
Parameters
$heading
string
the heading
$message
string
the message
$template
string
the template name
$status_code
integer
the status code
Returns
string
public string show_php_error ( string $severity, string $message, string $filepath, string $line )
Native PHP error handler
Parameters
$severity
string
the error severity
$message
string
the error string
$filepath
string
the error filepath
$line
string
the error line number
Returns
string
<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="action" id="$action">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
$action
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="severity" id="$severity">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
$severity
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="message" id="$message">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
$message
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="filename" id="$filename">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
$filename
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="line" id="$line">
<td class="attributes"><code>
public
mixed
</code></td>
<td class="name">
$line
<div class="description detailed">
</div>
</div></td>
</tr>
<tr data-order="ob_level" id="$ob_level">
<td class="attributes"><code>
public
integer
</code></td>
<td class="name">
$ob_level
<div class="description detailed">
Nesting level of the output buffering mechanism
</div>
</div></td>
</tr>
<tr data-order="levels" id="$levels">
<td class="attributes"><code>
public
array
</code></td>
<td class="name">
$levels
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'
)
<div class="description detailed">
List if available error levels
</div>
</div></td>
</tr>
</table>