From 927e24330e02c6146c4c2a67d636f9727e7e0ba9 Mon Sep 17 00:00:00 2001 From: Nathan Voxland Date: Tue, 5 Apr 2022 15:35:45 -0500 Subject: [PATCH] Update exception handling for changed exceptions --- .../sqlgenerator/TagDatabaseGeneratorCassandra.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/java/liquibase/ext/cassandra/sqlgenerator/TagDatabaseGeneratorCassandra.java b/src/main/java/liquibase/ext/cassandra/sqlgenerator/TagDatabaseGeneratorCassandra.java index e3bfdd38..da89bc14 100644 --- a/src/main/java/liquibase/ext/cassandra/sqlgenerator/TagDatabaseGeneratorCassandra.java +++ b/src/main/java/liquibase/ext/cassandra/sqlgenerator/TagDatabaseGeneratorCassandra.java @@ -15,6 +15,7 @@ import liquibase.database.Database; import liquibase.database.ObjectQuotingStrategy; import liquibase.datatype.DataTypeFactory; +import liquibase.exception.DatabaseException; import liquibase.ext.cassandra.database.CassandraDatabase; import liquibase.sql.Sql; import liquibase.sql.UnparsedSql; @@ -79,13 +80,7 @@ public Sql[] generateSql(TagDatabaseStatement statement, Database database, SqlG - } catch (SQLException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - return super.generateSql(statement, database, sqlGeneratorChain); - } catch (ClassNotFoundException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + } catch (SQLException | DatabaseException e) { return super.generateSql(statement, database, sqlGeneratorChain); } finally { database.setObjectQuotingStrategy(currentStrategy);