use of com.facebook.presto.verifier.framework.ClusterConnectionException in project presto by prestodb.
the class TestPrestoExceptionClassifier method assertClusterConnectionException.
private void assertClusterConnectionException(QueryException queryException, QueryStage queryStage) {
assertTrue(queryException instanceof ClusterConnectionException);
assertEquals(queryException.getQueryStage(), queryStage);
ClusterConnectionException exception = (ClusterConnectionException) queryException;
assertTrue(exception.isRetryable());
}
Aggregations