Class: I2CE Error (4.0.12)
The class I2CE_Error contains 2 definitions:
- Definition in i2ce/lib/classDefs/I2CE_Error_5_2.php of the package I2CE
- Definition in i2ce/lib/classDefs/I2CE_Error_5_3.php of the package I2CE
i2ce/lib/classDefs/I2CE_Error_5_2.php
This article describes the class I2CE_Error .
- Location: Part of the module I2CE in the package I2CE 4.0.12-release
- Source: Defined in the file lib/classDefs/I2CE_Error_5_2.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v1.0.0
This class mainly handles throwing errors from withing I2CE
Variables
$stored_messages
An array of the notice/warning messages received for this session array $stored_messages
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 35
- Type: static protected static $stored_messages
$errorType
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 41
- Type: static public $errorType
$noticeErrors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 57
- Type: static public $noticeErrors
$warningErrors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 58
- Type: static public $warningErrors
$ignoreErrorsFromFilesMatching
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 61
- Type: static public $ignoreErrorsFromFilesMatching
$ignoreErrors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 62
- Type: static public $ignoreErrors
$site_warnings
Count of the number of erros and warings received when the site is not initialized @param static protected boolean $site_warnings
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 80
- Type: static protected $site_warnings
$error_num
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 90
- Type: protected $error_num
$errorHandler
Optional error handler callback.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 95
- Type: static private $errorHandler
$started_errors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 113
- Type: protected $started_errors
$errorImage
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 114
- Type: public $errorImage
$errorStart
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 431
- Type: protected $errorStart
$badness
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 586
- Type: protected $badness
$trace_depth
integer $trace_depth. Defaults to 1. The number of previous methods to report when an error message is developed. Set to a negative number to report all, or 0 to report none.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 822
- Type: static protected static $trace_depth
Methods
getPrevMethod()
Parse the debug backtrace to get the method that raised the error.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 844
- Signature: static protected function getPrevMethod($debug,$start_depth,$trace_depth)
- Parameters:
- array $debug
- $start_depth
- Default Value: 1
- $trace_depth
- Default Value: 1
- Returns: string
handleError()
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 640
- Signature: public function handleError($err_no,$err_string,$err_file,$err_line,$err_context)
- Parameters:
- $err_no
- $err_string
- $err_file
- Default Value: false
- $err_line
- Default Value: false
- $err_context
- Default Value: false
hasWarnings()
See if there were any warning messages set before the site was initialized
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 86
- Signature: static public function hasWarnings()
- Returns: boolean
popErrorHandler()
Pop an error handler off of the stack.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 109
- Signature: static public function popErrorHandler()
- Returns: $callback
the callback popped off the stack
pushErrorHandler()
Push an error handler onto the stack. @param $callback
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 101
- Signature: static public function pushErrorHandler($callback)
- Parameters:
- $callback
raiseError()
Raise an error and redirect the user for any critical errors. The default redirect will go to the home page for the site. @param string/mixed $message The error message.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 671
- Signature: static public function raiseError($message,$type,$redirect)
- Parameters:
- $message
- Default Value: null
- integer $type
The error type.- Default Value: E_USER_NOTICE
- string $redirect
The page to redirect to for critical errors. @global array- Default Value: ""
- $message
raiseMessage()
Raise an error message, but don't display any extra trace messages to keep the log file short when the trace isn't necessary. @param string/mixed $message The error message.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 632
- Signature: static public function raiseMessage($message,$type,$redirect)
- Parameters:
- $message
- Default Value: null
- integer $type
The error type.- Default Value: E_USER_NOTICE
- string $redirect
The page to redirect to for critical errors.- Default Value: ""
- $message
resetStoredMessages()
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 37
- Signature: static public function resetStoredMessages()
setTraceDepth()
Set the trace depth used in reporting error messages
- Defined in i2ce/lib/classDefs/I2CE_Error_5_2.php on line 833
- Signature: static public function setTraceDepth($depth)
- Parameters:
- integer $depth Set to a negative number to report all, 0 to report none.
- Returns: integer.
The previous value of trace depth.
i2ce/lib/classDefs/I2CE_Error_5_3.php
This article describes the class I2CE_Error .
- Location: Part of the module I2CE in the package I2CE 4.0.12-release
- Source: Defined in the file lib/classDefs/I2CE_Error_5_3.php on line 29
- Author: Carl Leitner <litlfred@ibiblio.org>
- Since: v1.0.0
This class mainly handles throwing errors from withing I2CE
Variables
$stored_messages
An array of the notice/warning messages received for this session array $stored_messages
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 35
- Type: static protected static $stored_messages
$errorType
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 41
- Type: static public $errorType
$noticeErrors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 58
- Type: static public $noticeErrors
$warningErrors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 59
- Type: static public $warningErrors
$ignoreErrorsFromFilesMatching
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 62
- Type: static public $ignoreErrorsFromFilesMatching
$ignoreErrors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 63
- Type: static public $ignoreErrors
$site_warnings
Count of the number of erros and warings received when the site is not initialized @param static protected boolean $site_warnings
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 81
- Type: static protected $site_warnings
$error_num
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 91
- Type: protected $error_num
$errorHandler
Optional error handler callback.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 96
- Type: static private $errorHandler
$started_errors
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 114
- Type: protected $started_errors
$errorImage
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 115
- Type: public $errorImage
$errorStart
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 432
- Type: protected $errorStart
$badness
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 587
- Type: protected $badness
$trace_depth
integer $trace_depth. Defaults to 1. The number of previous methods to report when an error message is developed. Set to a negative number to report all, or 0 to report none.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 823
- Type: static protected static $trace_depth
Methods
getPrevMethod()
Parse the debug backtrace to get the method that raised the error.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 845
- Signature: static protected function getPrevMethod($debug,$start_depth,$trace_depth)
- Parameters:
- array $debug
- $start_depth
- Default Value: 1
- $trace_depth
- Default Value: 1
- Returns: string
handleError()
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 640
- Signature: public function handleError($err_no,$err_string,$err_file,$err_line,$err_context)
- Parameters:
- $err_no
- $err_string
- $err_file
- Default Value: false
- $err_line
- Default Value: false
- $err_context
- Default Value: false
hasWarnings()
See if there were any warning messages set before the site was initialized
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 87
- Signature: static public function hasWarnings()
- Returns: boolean
popErrorHandler()
Pop an error handler off of the stack.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 110
- Signature: static public function popErrorHandler()
- Returns: $callback
the callback popped off the stack
pushErrorHandler()
Push an error handler onto the stack. @param $callback
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 102
- Signature: static public function pushErrorHandler($callback)
- Parameters:
- $callback
raiseError()
Raise an error and redirect the user for any critical errors. The default redirect will go to the home page for the site. @param string/mixed $message The error message.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 671
- Signature: static public function raiseError($message,$type,$redirect)
- Parameters:
- $message
- Default Value: null
- integer $type
The error type.- Default Value: E_USER_NOTICE
- string $redirect
The page to redirect to for critical errors. @global array- Default Value: ""
- $message
raiseMessage()
Raise an error message, but don't display any extra trace messages to keep the log file short when the trace isn't necessary. @param string/mixed $message The error message.
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 633
- Signature: static public function raiseMessage($message,$type,$redirect)
- Parameters:
- $message
- Default Value: null
- integer $type
The error type.- Default Value: E_USER_NOTICE
- string $redirect
The page to redirect to for critical errors.- Default Value: ""
- $message
resetStoredMessages()
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 37
- Signature: static public function resetStoredMessages()
setTraceDepth()
Set the trace depth used in reporting error messages
- Defined in i2ce/lib/classDefs/I2CE_Error_5_3.php on line 834
- Signature: static public function setTraceDepth($depth)
- Parameters:
- integer $depth Set to a negative number to report all, 0 to report none.
- Returns: integer.
The previous value of trace depth.