Team-9 Exception Handling
Team-9 Exception Handling
script
Guru Vishal M
Aniroodh T V
Hari Dharsaun R L
Jayasurya M
Error 404! We didn’t do the presentation. Sorry
:(
Just kidding ;) Here we go!
What is Exception Handling?
Syntax
Throw Statement
Example
Throw Statement
Output
Try...Catch Statements
A try statement lets you test a block of code for errors. A catch
statement lets you handle that error.
Syntax
Try...Catch Statements
Example Output
Try...Catch...Finally
Statements
Try...Catch...Finally statements works just like Try...Catch
statements and the finally statement defines a code block to
run regardless of the result.
Syntax
Try...Catch...Finally
Statement
Example Output
Sorry sorry...