Advertisement
Guest User

Untitled

a guest
Apr 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. try {
  2.  
  3. methodThrowingExceptions();
  4.  
  5. } catch (IOException | IllegalArgumentException ex) {
  6.  
  7. // Both IOException and IllegalArgumentException will be caught and handled here
  8. reportException(ex);
  9.  
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement