base\ErrorHandler convertExceptionToError()

convertExceptionToError() public static method

Converts an exception into a PHP error.

This method can be used to convert exceptions inside of methods like __toString() to PHP errors because exceptions cannot be thrown inside of them.

public static void convertExceptionToError ( $exception )
$exception Exception

The exception to convert to a PHP error.

doc_Yii
2016-10-30 16:51:33
Comments
Leave a Comment

Please login to continue.