Skip to content

Commit

Permalink
Handle ClassCastException
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Schofield authored and Andrew Schofield committed Oct 24, 2019
1 parent d50abca commit ca68ca1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ else if (connectionMode.equals(MQSinkConnector.CONFIG_VALUE_MQ_CONNECTION_MODE_B
builder = c.newInstance();
builder.configure(props);
}
catch (ClassNotFoundException | IllegalAccessException | InstantiationException | NullPointerException exc) {
catch (ClassNotFoundException | ClassCastException | IllegalAccessException | InstantiationException | NullPointerException exc) {
log.error("Could not instantiate message builder {}", builderClass);
throw new ConnectException("Could not instantiate message builder", exc);
}
Expand Down

0 comments on commit ca68ca1

Please sign in to comment.