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.  |  
Please login to continue.