\SDF_Exceptions

Exceptions Class

Summary

Methods
Properties
Constants
__construct()
log_exception()
show_404()
show_error()
show_php_error()
$action
$severity
$message
$filename
$line
$ob_level
$levels
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$action

$action : 

Type

$severity

$severity : 

Type

$message

$message : 

Type

$filename

$filename : 

Type

$line

$line : 

Type

$ob_level

$ob_level : integer

Nesting level of the output buffering mechanism

Type

integer

$levels

$levels : array

List if available error levels

Type

array

Methods

__construct()

__construct() 

Constructor

log_exception()

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

Exception Logger

This function logs PHP generated error messages

Parameters

$severity
$message
$filepath
$line

Returns

string

show_404()

show_404(  $page = '',   $log_error = TRUE) : string

404 Page Not Found Handler

Parameters

$page
$log_error

Returns

string

show_error()

show_error(  $heading,   $message,   $template = 'error_general',   $status_code = 500) : string

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
$message
$template
$status_code

Returns

string

show_php_error()

show_php_error(  $severity,   $message,   $filepath,   $line) : string

Native PHP error handler

Parameters

$severity
$message
$filepath
$line

Returns

string