Answer the question
In order to leave comments, you need to log in
How in php would it be possible to handle errors of any kind as an exception?
Is it possible to make it so that in php it would be possible to handle any type of error as an exception?
Answer the question
In order to leave comments, you need to log in
Set your own error handler and throw any exceptions
http://us2.php.net/manual/en/function.set-error-handler.php
ps as far as I remember in 5.6 all fatals will be transferred to actions.
For fatal errors use:
http://us1.php.net/manual/ru/function.register-shutdown-function.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question