Websphere exception handling
Posted
by Benjamin
on Stack Overflow
See other posts from Stack Overflow
or by Benjamin
Published on 2010-04-06T00:27:03Z
Indexed on
2010/04/06
0:33 UTC
Read the original article
Hit count: 283
Hi all,
From a security standpoint, what is the best solution to handle application errors with Websphere?
I've been thinking of creating a class that is called every time an application error is generated, log the error and display a generic error message to the users.
In PHP this can be achieved using the set_exception_handler() function. Is there something similar for websphere that could be configured in the web.xml?
I've found codes like this on the internet:
<error-page>
<error-code>500</error-code>
<location>/servlet/ExceptionHandlerServlet</location>
</error-page>
But that would only work with "500" HTTP error codes. I really want something generic that catches everything. Something like a class that implements a certain interface which can have access to all information about the error.
Thanks for your time.
© Stack Overflow or respective owner