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 convertExceptionToError ( |
||
$exception | the exception to convert to a PHP error. |