Could some body explain exception vs error in asp.net
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Some people use error to refer to an unrecoverable discrepancy. Some use error to mean any possible issue.
I would say that an error is anytime a program deviates from the expected flow. So you could say they are exceptions to what the program was intended for. I would also say that exceptions in the programming sense are anything that needs to be handled in a way different from the general case, which includes some, but is not limited to, errors. Some errors can’t be handled.
Exception handling can be used for more than just catching undesirable effects.
While this is not a very detailed answer, at least it points out that they are not equivalent.
If all Zims are Zoms and all Zigs are Zoms, are all Zims also Zigs? Are all Zigs also Zims?