Search in sources :

Example 1 with PGExceptionSorter

use of com.alibaba.druid.pool.vendor.PGExceptionSorter in project druid by alibaba.

the class PGExceptionSorterTest method test_pg.

public void test_pg() throws Exception {
    PGExceptionSorter exSorter = new PGExceptionSorter();
    PSQLException ex = new PSQLException(GT.tr("Expected an EOF from server, got: {0}", new Integer(0)), PSQLState.COMMUNICATION_ERROR);
    Assert.assertTrue(exSorter.isExceptionFatal(ex));
}
Also used : PGExceptionSorter(com.alibaba.druid.pool.vendor.PGExceptionSorter) PSQLException(org.postgresql.util.PSQLException)

Aggregations

PGExceptionSorter (com.alibaba.druid.pool.vendor.PGExceptionSorter)1 PSQLException (org.postgresql.util.PSQLException)1