Overriding PEAR error handler
Posted
by Rolf
on Stack Overflow
See other posts from Stack Overflow
or by Rolf
Published on 2010-06-08T13:00:53Z
Indexed on
2010/06/08
13:22 UTC
Read the original article
Hit count: 292
Hi everyone,
I'm currently working on an application that requires lots of external libraries. My job right now is set a unique error handler that will manage every error.
So far, I found 7 different types of PEAR errors:
- PEAR_ERROR_RETURN:
- PEAR_ERROR_EXCEPTION:
- PEAR_ERROR_CALLBACK:
- PEAR_ERROR_EXCEPTION:
- PEAR_ERROR_PRINT:
- PEAR_ERROR_TRIGGER:
- PEAR_ERROR_DIE:
I want to handle only the serious error (like the native E*_ERROR). The only problem is I have absolutely no idea about PEAR error criticity ! Those names are more related to the way of handling them than to their seriousness... Is there a real documentation about it ?
I guess a better solution would consist in using their pushErrorHandling, but I just don't understand how to use it... If someone here knows, I'd be grateful...
Thanks in advance !
© Stack Overflow or respective owner