How is normal catch statement different from catch(Exception error) statement?

Home Forums Web Development ASP.Net How is normal catch statement different from catch(Exception error) statement?

This topic contains 0 replies, has 1 voice, and was last updated by  Nitesh 5 years, 4 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #3453

    Nitesh
    Member

    How is normal catch statement different from catch(Exception error) statement?

    I mean what is the difference in catch statement in below two scenarios..

    
    
    try 
    {
    //Code that might generate error
    }
    catch
    {
    
    }
    
    

    and

    
    
    try 
    {
    //Code that might generate error
    }
    catch(Exception error)
    {
    
    }
    
    
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.