TwistPHP Documentation

handleException

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

handleExceptionHandle a PHP Exception and output the twist exception page. The exception page will be more detailed when the framework is set in development mode (see the TwistPHP setting DEVELOPMENT_MODE).

Parameters

Name Type Description
$resExceptionresourcen/a
[$arrError = array()]arrayn/a

Return Values

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

Example

<?php
//Set the variables for the example
$resException = (resource);
$arrError = array();

//Call the function handleException with the example vars
\Twist\Classes\Error::handleException($resException$arrError);