Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What are the different ways to handle exceptions?
#1
Wink 
The two methods to handle exception are as follows:-
     Wrapping the desired code in the try block that is followed by catch block
     List out the desired exception in throw and the caller of the method handle       
     the  exception                
Reply
#2
Yeap the live exampe is like

Try {
Your Code
}
Catch
{
Print Error
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)