Skip to content

Commit

Permalink
ref #175
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Furer committed Oct 27, 2021
1 parent 1d6295c commit c0994d8
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,23 +215,20 @@ public void onMessage(ReqT message) {
METHOD_INVOCATION.get().setArguments(new Object[]{message});
break;
default:
fail(next,call,headers, new AuthenticationException("Unsupported call type "+call.getMethodDescriptor().getType()) {
});
throw new AuthenticationException("Unsupported call type "+call.getMethodDescriptor().getType()) {};
}

beforeInvocation(METHOD_INVOCATION.get());
super.onMessage(message);
} catch (AccessDeniedException | AuthenticationException e) {
fail(next, call, headers, e);
return;
failureHandlingSupport.closeCall(e,call,headers);
} catch (Exception e) {
fail(next, call, headers, new AuthenticationException("", e) {
});
return;
failureHandlingSupport.closeCall( new AuthenticationException("", e) {},call, headers);
} finally {
METHOD_INVOCATION.get().setArguments(null);
}

super.onMessage(message);

}
);
}
Expand Down

0 comments on commit c0994d8

Please sign in to comment.