multiple exceptions in catch java 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());
}