Spring Boot - Exception Handling
Consider this code:
What will happen if a
@ExceptionHandler({IOException.class, SQLException.class})
public ResponseEntity handleIOAndSQL(Exception ex) {
return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).body("Database or IO error");
} What will happen if a
FileNotFoundException is thrown?