Check out example codes for "java catch multiple exceptions". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com