Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java catch multiple exceptions


catch(IOException | SQLException ex){
     logger.error(ex);
     throw new MyException(ex.getMessage());
}
Source by www.journaldev.com #
 
PREVIOUS NEXT
Tagged: #java #catch #multiple #exceptions
ADD COMMENT
Topic
Name
2+1 =