Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- methodThrowingExceptions();
- } catch (IOException | IllegalArgumentException ex) {
- // Both IOException and IllegalArgumentException will be caught and handled here
- reportException(ex);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement