What are the different ways to handle exceptions?

Author Topic: What are the different ways to handle exceptions?  (Read 881 times)

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • Hot Shaper
What are the different ways to handle exceptions?
« on: 03-28-2016, 03:06:51 »
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                 


Offline TomClarke

  • Trade Count: (0)
  • Hero Member
  • *****
  • Thank You 50
  • Posts: 874
  • Karma: 0
  • Gender: Male
    • Custom Writing Service & Content Marketplace
Re: What are the different ways to handle exceptions?
« Reply #1 on: 05-11-2016, 01:20:26 »
I know three ways to handle exceptions:
- you can enclose your codes in try/catch/finally block.
- you can use events like page-error and application_error;
- you can use custom error page.
Your ideas, our writings - Writology.com

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
2875 Views
Last post 02-03-2015, 20:12:57
by CGG-gina
2 Replies
1201 Views
Last post 06-25-2016, 02:39:06
by TomClarke
0 Replies
1122 Views
Last post 07-05-2016, 04:38:22
by chinmay.sahoo
1 Replies
890 Views
Last post 07-18-2016, 04:03:20
by TomClarke
5 Replies
1967 Views
Last post 07-14-2017, 05:11:35
by rustyblogger