Java catch multiple exceptions and rethrow exception
// syntax in java 7 Java catch multiple exceptions and rethrow exception
try
{
// code that throw exceptions 1 and 3
}
catch(SQLException | IOException e)
{
logger.log(e);
}
catch(Exception e)
{
logger.severe(e);
}