When i extend an Exception class:
CustomException extends Exception(){}
throw new CustomException("Houston we have a problem",1);
In error:
SCREAM: Error suppression ignored for
Uncaught exception 'CustomException' with message 'Houston we have a problem' in C:\wamp\www\index.php on line 5
CustomException: Houston we have a problem in C:\wamp\www\index on line 5
I want only the CustomException message:
CustomException: Houston we have a problem in C:\wamp\www\index on line 5
Is this possible? Is it an xdebug problem? Thanks.
That is an xdebug option. In your php.ini you have xdebug.scream=1
To disable it set it to xdebug.scream=0
Scream overrides the @
"shut up" operator so you will have to turn it off to stop this from happening. Don't forget to restart your server for the changes to take effect.