java catch multiple exceptions

Java
catch(IOException | SQLException ex){
     logger.error(ex);
     throw new MyException(ex.getMessage());
}

Source

Also in Java: