PHP Class QErrorHandler, qcodo

If we are in this class, we must assume that the application is in an unstable state. Thus, we cannot depend on any other qcodo or application-based classes or objects to help with the error processing. Therefore, all classes and functionality for error handling must be defined in this class in order to minimize any dependency on the rest of the framework.
Show file Open project: qcodo/qcodo Class Usage Examples

Public Properties

Property Type Description
$AdditionalMessage
$CliReportWidth
$DateTimeOfError Other Properties
$ErrorAttributeArray
$FileLinesArray Properties that are calculated based on the error information above
$FileNameOfError
$Filename
$IsoDateTimeOfError
$LineNumber
$Message
$MessageBody
$ObjectType
$RenderedPage Static Properties that can be optionally set
$StackTrace
$Type Static Properties that should always be set on any error

Public Methods

Method Description
HandleError ( $intErrorNumber, $strErrorString, $strErrorFile, $intErrorLine )
HandleException ( Exception $objException )
PrepDataForScript ( $strData )
VarExport ( mixed $mixData, boolean $blnHtmlEntities = true ) : string A modified version of var_export to use var_dump via the output buffer, which can better handle recursive structures.

Protected Methods

Method Description
Run ( )

Method Details

HandleError() public static method

public static HandleError ( $intErrorNumber, $strErrorString, $strErrorFile, $intErrorLine )

HandleException() public static method

public static HandleException ( Exception $objException )
$objException Exception

PrepDataForScript() public static method

public static PrepDataForScript ( $strData )

Run() protected static method

protected static Run ( )

VarExport() public static method

A modified version of var_export to use var_dump via the output buffer, which can better handle recursive structures.
public static VarExport ( mixed $mixData, boolean $blnHtmlEntities = true ) : string
$mixData mixed
$blnHtmlEntities boolean
return string

Property Details

$AdditionalMessage public static property

public static $AdditionalMessage

$CliReportWidth public static property

public static $CliReportWidth

$DateTimeOfError public static property

Other Properties
public static $DateTimeOfError

$ErrorAttributeArray public static property

public static $ErrorAttributeArray

$FileLinesArray public static property

Properties that are calculated based on the error information above
public static $FileLinesArray

$FileNameOfError public static property

public static $FileNameOfError

$Filename public static property

public static $Filename

$IsoDateTimeOfError public static property

public static $IsoDateTimeOfError

$LineNumber public static property

public static $LineNumber

$Message public static property

public static $Message

$MessageBody public static property

public static $MessageBody

$ObjectType public static property

public static $ObjectType

$RenderedPage public static property

Static Properties that can be optionally set
public static $RenderedPage

$StackTrace public static property

public static $StackTrace

$Type public static property

Static Properties that should always be set on any error
public static $Type