I am using the following code to show a common error page whenever an exception is thrown.
I have two questions. First question is how to configure it in a way to support all types of the exceptions?
The other question is how to register the type of exception thrown in database for future maintenance? I know I can save them into database after catching them but how about exceptions such as antlr
versioning exception that are not catch by back-end and will be thrown through front-end ?
<global-results>
<result name="cuerror">error.jsp</result>
</global-results>
<global-exception-mappings>
<exception-mapping exception="java.lang.Exception" result="cuserror"/>
</global-exception-mappings>