In PHP, there are many ways in handling user and run-time coding errors. I listed a few because I am not sure if there are even more:
- die()
- exit()
- trigger_error()
- custom error_handler()
- throwing and catching exceptions
- In PHP, are there yet more error handling functions\frameworks than what I have listed?
- Which error handler should I uses over others and why?
- Which error handler should I avoid over others and why?
- I am all about delivering code to be shared by other PHP programmers and I closely follow Pear's PHP coding standard. To be consistent with this standard (or standards), what error handler(s) should I use.
Jeff in Seattle