Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #20 from corona-warn-app/fix/io-exception-error-ha…
Browse files Browse the repository at this point in the history
…ndler

Fix: Add ExceptionHandler for IOException
  • Loading branch information
f11h authored Sep 30, 2021
2 parents 648ff75 + 80633c6 commit 69e3947
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

import eu.europa.ec.dgc.businessrule.exception.DgcaBusinessRulesResponseException;
import eu.europa.ec.dgc.businessrule.restapi.dto.ProblemReportDto;
import java.io.IOException;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
Expand All @@ -39,6 +40,10 @@
@Slf4j
public class ErrorHandler extends ResponseEntityExceptionHandler {

@ExceptionHandler(IOException.class)
public void handleIoException() {
log.error("IOException thrown.");
}

/**
* Global Exception Handler to wrap exceptions into a readable JSON Object.
Expand Down

0 comments on commit 69e3947

Please sign in to comment.