When an exception is thrown due to an expiration of a [Query timeout|https://docs.jboss.org/hibernate/orm/5.4/javadocs/org/hibernate/query/Query.html#setTimeout-int-] an _org.hibernate.exception. GenericJDBCException _ GenericJDBCException_ exception is thrown when the underlying database is PostgreSQL (See attached stack trace). This forces to do some extra work to identify that the exception is caused because of the timeout.
Note that when using Oracle the correct _org.hibernate.QueryTimeoutException_ is thrown instead. |
|