Skip to content
Discussion options

You must be logged in to vote

Found the reason. when using reactive routes exception handlers are not called, rather it should be used as follow

@Route(path = "/*", type = Route.HandlerType.FAILURE, produces = APPLICATION_JSON)
void authConsentExceptionHandler(AuthConsentException e, HttpServerResponse response) {
    response.setStatusCode(INTERNAL_SERVER_ERROR).end();
}

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by denysandriyanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant