java put two exceptions in one catch block code example
Example: java catch multiple exceptions
catch(IOException | SQLException ex){
logger.error(ex);
throw new MyException(ex.getMessage());
}
catch(IOException | SQLException ex){
logger.error(ex);
throw new MyException(ex.getMessage());
}