Skip to content

Commit

Permalink
Update exception handling for changed exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
nvoxland committed Apr 5, 2022
1 parent c44efcd commit 927e243
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 927e243

Please sign in to comment.