Configruación de excepciones y redirección a página de errores.

This commit is contained in:
Marcos Garcia Nuñez
2019-12-20 17:58:34 +01:00
parent ed78633291
commit 992fc3e25a

View File

@@ -69,10 +69,11 @@
<exception-type>java.sql.SQLException</exception-type> <exception-type>java.sql.SQLException</exception-type>
<exception-type>org.hibernate.exception.GenericJDBCException</exception-type> <exception-type>org.hibernate.exception.GenericJDBCException</exception-type>
<exception-type>java.net.ConnectException</exception-type> <exception-type>java.net.ConnectException</exception-type>
<exception-type>javax.persistence.PersistenceException</exception-type>
<location>/error.xhtml?type=sql</location> <location>/error.xhtml?type=sql</location>
</error-page> </error-page>
<error-page> <error-page>
<exception-type>java.lang.RuntimeException</exception-type> <exception-type>javax.persistence.PersistenceException</exception-type>
<location>/error.xhtml?type=runtime</location> <location>/error.xhtml?type=runtime</location>
</error-page> </error-page>
<error-page> <error-page>