是否可以在 web.xml 中定义两个部分以捕获两种不同的异常类型:
<!-- general exception -->
<error-page>
<exception-type>**java.lang.Exception**</exception-type>
<location>/generalError.jsp</location>
</error-page>
<!-- specific exception -->
<error-page>
<exception-type>org.myapp.myException</exception-type>
<location>/sessionTimeout.jsp</location>
</error-page>
这会引起任何冲突吗?