Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ protected void gatherBestRouteCoverages() {
if (route.getExchangesTotal() > mappedRoute.getExchangesTotal()) {
routeMap.put(routeId, route);
}
} catch (Throwable t) {
} catch (Exception t) {
// this is an edge case that needs to be identified. Log some useful debugging information.
System.out.println(t.getClass().toString());
System.out.printf("routeID: %s%n", routeId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public void onCanceled() {
return ApiConsumerHelper.getResultsProcessed(this, result[0], isSplitResult());
}

} catch (Throwable t) {
} catch (Exception t) {
throw RuntimeCamelException.wrapRuntimeCamelException(t);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -486,8 +486,6 @@ private <T> void readContent(
responseHandler.onResponse(this.<T> readContent(uriInfo, content), endpointHttpHeaders);
} catch (Exception e) {
responseHandler.onException(e);
} catch (Error e) {
responseHandler.onException(new ODataException("Runtime Error Occurred", e));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ protected void processInTransaction(final Exchange exchange) {
} catch (TransactionRollbackException e) {
// do not set as exception, as its just a dummy exception to force spring TX to rollback
logTransactionRollback(redelivered, ids, null, true);
} catch (Throwable e) {
} catch (Exception e) {
exchange.setException(e);
logTransactionRollback(redelivered, ids, e, false);
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public boolean process(final Exchange exchange, final AsyncCallback callback) {
}
callback.done(doneSync);
return doneSync;
} catch (final Throwable t) {
} catch (final Exception t) {
exchange.setException(t);
callback.done(doneSync);
return doneSync;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ public static String dumpMessageHistoryStacktrace(
// must not cause new exceptions so run this in a try catch block
try {
return doDumpMessageHistoryStacktrace(exchange, exchangeFormatter, logStackTrace);
} catch (Throwable e) {
} catch (Exception e) {
// ignore as the body is for logging purpose
return "";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ JsonObject loadDebug(long pid) {
IOHelper.close(fis);
return (JsonObject) Jsoner.deserialize(text);
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ JsonObject loadStatus(long pid) {
IOHelper.close(fis);
return (JsonObject) Jsoner.deserialize(text);
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ String valueAsStringPretty() {
if (s != null && !s.isEmpty()) {
json = true;
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore as not json
}
if (s == null || s.isEmpty()) {
Expand All @@ -291,7 +291,7 @@ String valueAsStringPretty() {
} else {
s = XmlHelper.prettyPrint(s, 2);
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore as not xml
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ protected Integer callHawtio() throws Exception {
installHangupInterceptor();
shutdownLatch.await();

} catch (Throwable e) {
} catch (Exception e) {
System.err.println("Cannot launch Hawtio due to: " + e.getMessage());
return 1;
} finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ JsonObject loadStatus(long pid) {
IOHelper.close(fis);
return (JsonObject) Jsoner.deserialize(text);
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore
}
return null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ private void doLoadKnownDependencies(String name) {
}
addMappings(map);
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private void doLoadKnownRepos(String name) {
}
addRepos(map);
}
} catch (Throwable e) {
} catch (Exception e) {
// ignore
}
}
Expand Down