TwistPHP Documentation

handleError

File path: dist/twist/Classes/Error.class.php
Namespace: Twist\Classes
Extends:

handleErrorPHP Error handler to capture all PHP errors so that they can be logged to a file or output into the debug window later.

Parameters

Name Type Description
$intErrorNointegern/a
$strErrorstringn/a
$strErrorFilestringn/a
$intErrorLineintegern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intErrorNo 124;
$strError 'foo';
$strErrorFile 'foo';
$intErrorLine 124;

//Call the function handleError with the example vars
\Twist\Classes\Error::handleError($intErrorNo$strError$strErrorFile$intErrorLine);