Monday, February 1, 2010

Explain how to Handle Exceptions in .NET

The different methods of handling the exceptions are:
  • 1.
    try
    {
         // code
    }
    catch(Exceptiontype *etype_object)
    {
         // code
    }
  • 2.
    try
    {
           // code
    }
    catch(Exceptiontype *etype_object)
    {
            throw new Custom_Exception();
    }

0 Comments: