Throwing your own exceptions signifies some design flaws in the project. If you throw your exception which means you know that an error has occurred, then  the question arise that why not write the proper code to handle that error instead of passing a new Exception object to the catch block? 

There are five access specifiers available in c#-

  • Private 
  • Protected
  • Public
  • Internal
  • Protected Internal.

PreviousDisplaying 3 of 3
1 2 3
Need Help? Contact Us.

Log in

*
*

Forgot password?

*

New User

*
*
*
*