I have a somehow funny issue. While trying to understand why a certain website returns http code 500 to browser, I found the message
PHP Fatal error: Class \'MZ
Extending @hakre answer you can simplify its usage with:
use \Exception as Exception;
That way you can throw exceptions without remembering the backslash like:
throw new Exception('This bundle needs the cURL PHP extension.');