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.
Exibir arquivo 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_oe static_oe property

public static $AdditionalMessage

$CliReportWidth public_oe static_oe property

public static $CliReportWidth

$DateTimeOfError public_oe static_oe property

Other Properties
public static $DateTimeOfError

$ErrorAttributeArray public_oe static_oe property

public static $ErrorAttributeArray

$FileLinesArray public_oe static_oe property

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

$FileNameOfError public_oe static_oe property

public static $FileNameOfError

$Filename public_oe static_oe property

public static $Filename

$IsoDateTimeOfError public_oe static_oe property

public static $IsoDateTimeOfError

$LineNumber public_oe static_oe property

public static $LineNumber

$Message public_oe static_oe property

public static $Message

$MessageBody public_oe static_oe property

public static $MessageBody

$ObjectType public_oe static_oe property

public static $ObjectType

$RenderedPage public_oe static_oe property

Static Properties that can be optionally set
public static $RenderedPage

$StackTrace public_oe static_oe property

public static $StackTrace

$Type public_oe static_oe property

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