What are other ways to catch the exception.
What are other ways to catch the exception on run time, except the Try catch block. Is it possible ? if yes please let me know how
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 5, 2014, 12:03 PM
http://msdn.microsoft.com/en-us/library/system.appdomain.unhandledexception(v=vs.110).aspx
The alternative to exceptions, which is used in languages such as C, is for your method to return an error code. The calling code then needs to check the return value to see whether an error occurred or not and, if it did, what the reason was for the error. Returning an error code of 0 typically means that no error occurred.
Farhan ShariffPosted Aug 5, 2014, 11:02 AM