Skip to content

Commit

Permalink
Excavator: Upgrades Baseline to the latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
svc-excavator-bot committed Dec 4, 2019
1 parent bf93518 commit d7707a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:gradle-info-plugin:5.2.0'
classpath 'com.netflix.nebula:nebula-publishing-plugin:14.1.1'
classpath 'com.palantir.baseline:gradle-baseline-java:2.37.0'
classpath 'com.palantir.baseline:gradle-baseline-java:2.40.0'
classpath 'com.palantir.gradle.consistentversions:gradle-consistent-versions:1.12.4'
classpath 'com.palantir.gradle.gitversion:gradle-git-version:0.12.2'
classpath 'com.palantir.metricschema:gradle-metric-schema:0.4.5'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static InvocationContext enter(
return eventHandler.preInvocation(proxy, method, arguments);
}
return disabledHandlerSentinel;
} catch (Throwable t) {
} catch (RuntimeException | Error t) {
if (logger.isWarnEnabled()) {
logger.warn(
"Failure occurred handling 'preInvocation' invocation on: {}",
Expand All @@ -87,7 +87,7 @@ static void exit(
} else {
eventHandler.onFailure(context, thrown);
}
} catch (Throwable t) {
} catch (RuntimeException | Error t) {
if (logger.isWarnEnabled()) {
Object value = thrown == null ? result : thrown;
logger.warn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private boolean isEnabled(Object instance, Method method, Object[] args) {
try {
return eventHandler.isEnabled()
&& filter.shouldInstrument(instance, method, args);
} catch (Throwable t) {
} catch (RuntimeException | Error t) {
logInvocationWarning("isEnabled", instance, method, t);
return false;
}
Expand All @@ -103,7 +103,7 @@ public final Object invoke(Object proxy, Method method, @Nullable Object[] nulla
return handleOnSuccess(context, result);
} catch (InvocationTargetException ite) {
throw handleOnFailure(context, ite.getCause());
} catch (Throwable t) {
} catch (IllegalAccessException | RuntimeException | Error t) {
throw handleOnFailure(context, t);
}
} else {
Expand Down

0 comments on commit d7707a6

Please sign in to comment.