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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.