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));
}
Aggregations