Skip to content

Commit 55c1e32

Browse files
add isSupported method as replacement for exception
1 parent 9c40705 commit 55c1e32

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sqldev/src/main/java/org/utplsql/sqldev/dal/RealtimeReporterDao.xtend

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ class RealtimeReporterDao {
5757
conn = connection
5858
jdbcTemplate = new JdbcTemplate(new SingleConnectionDataSource(conn, true))
5959
jdbcTemplate.fetchSize = 1
60-
if ((new UtplsqlDao(conn)).normalizedUtPlsqlVersionNumber < FIRST_VERSION_WITH_REALTIME_REPORTER) {
61-
throw new RuntimeException("RealtimeReporter requires utPLSQL v3.1.4 or higher to be installed.")
62-
}
60+
}
61+
62+
def isSupported() {
63+
return new UtplsqlDao(conn).normalizedUtPlsqlVersionNumber >= FIRST_VERSION_WITH_REALTIME_REPORTER
6364
}
6465

6566
def produceReport(String reporterId, List<String> pathList) {

0 commit comments

Comments
 (0)