Configruación de excepciones y redirección a página de errores.
This commit is contained in:
1 parent
ed78633291
commit
992fc3e25a
1 file changed
+2
-1
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user