What are the different ways to handle exceptions?

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 159
  • 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 29
  • Posts: 893
  • 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
2032 Views
Last post 08-26-2013, 22:57:56
by mitchiem
0 Replies
2687 Views
Last post 02-03-2015, 20:12:57
by CGG-gina
2 Replies
907 Views
Last post 06-25-2016, 02:39:06
by TomClarke
0 Replies
788 Views
Last post 07-05-2016, 04:38:22
by chinmay.sahoo
1 Replies
691 Views
Last post 07-18-2016, 04:03:20
by TomClarke