Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- // block of code to monitor for errors
- // the code you think can raise an exception
- }
- catch (ExceptionType1 exOb) {
- // exception handler for ExceptionType1
- }
- catch (ExceptionType2 exOb) {
- // exception handler for ExceptionType2
- }
- // optional
- finally {
- // block of code to be executed after try block ends
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement