You must Sign In to post a response.
Category: .NET
#769863
post your code here.. for detailed solution so it wont make confusion.
you can use particular exception block to check then have general exception
Like below
try
{
--you code--
}
catch(NullReferenceException ner)
{
--handle exception here
}
catch(Exception e)
{
--handle exception here
}
Having general exception checking then particular exception is wrong mechanism.
you can use particular exception block to check then have general exception
Like below
try
{
--you code--
}
catch(NullReferenceException ner)
{
--handle exception here
}
catch(Exception e)
{
--handle exception here
}
Having general exception checking then particular exception is wrong mechanism.
Return to Return to Discussion Forum