What are the different ways to handle exceptions?

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

Offline chinmay.sahooTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 2
  • Posts: 158
  • Karma: 0
    • We Helpline
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 53
  • Posts: 863
  • 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
3051 Views
Last post 02-03-2015, 20:12:57
by CGG-gina
2 Replies
1491 Views
Last post 06-25-2016, 02:39:06
by TomClarke
0 Replies
1607 Views
Last post 07-05-2016, 04:38:22
by chinmay.sahoo
1 Replies
1100 Views
Last post 07-18-2016, 04:03:20
by TomClarke
4 Replies
2486 Views
Last post 07-08-2017, 00:28:38
by sree31