Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
denniscunningham committed Aug 22, 2023
1 parent bc00f90 commit 93af431
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1059,40 +1059,40 @@ private void setupJobs(@NonNull Config cfg, @NonNull KitUtil kitUtil, @NonNull N

private void setupRouteGenericErrorHandlers() {
exception(DSMBadRequestException.class, (exception, request, response) -> {
logger.info("Request error processing request: {}: {}", request.url(), exception.toString());
logger.info("Request error while processing request: {}: {}", request.url(), exception.toString());
response.status(400);
response.body(exception.getMessage());
});
exception(DsmInternalError.class, (exception, request, response) -> {
logger.error("Internal error processing request: {}: {}", request.url(), exception.toString());
logger.error("Internal error while processing request: {}: {}", request.url(), exception.toString());
exception.printStackTrace();
response.status(500);
response.body(exception.getMessage());
});
exception(DDPInternalError.class, (exception, request, response) -> {
logger.error("Internal error processing request: {}: {}", request.url(), exception.toString());
logger.error("Internal error while processing request: {}: {}", request.url(), exception.toString());
exception.printStackTrace();
response.status(500);
response.body(exception.getMessage());
});
exception(AuthorizationException.class, (exception, request, response) -> {
logger.info("Authorization error processing request: {}: {}", request.url(), exception.toString());
logger.info("Authorization error while processing request: {}: {}", request.url(), exception.toString());
response.status(403);
response.body(exception.getMessage());
});
exception(TokenExpiredException.class, (exception, request, response) -> {
logger.info("Token expiration processing request: {}: {}", request.url(), exception.toString());
logger.info("Token expiration while processing request: {}: {}", request.url(), exception.toString());
response.status(401);
response.body(exception.getMessage());
});
exception(InvalidTokenException.class, (exception, request, response) -> {
logger.info("Invalid token processing request: {}: {}", request.url(), exception.toString());
logger.info("Invalid token while processing request: {}: {}", request.url(), exception.toString());
response.status(401);
response.body(exception.getMessage());
});
exception(AuthenticationException.class, (exception, request, response) -> {
// this is a fallback exception, log it warn level to see why it is happening
logger.warn("Authentication error processing request: {}: {}", request.url(), exception.toString());
logger.warn("Authentication error while processing request: {}: {}", request.url(), exception.toString());
response.status(401);
response.body(exception.getMessage());
});
Expand Down

0 comments on commit 93af431

Please sign in to comment.