
Hi,
I'm getting this warning at the generic catch
public void test(str _Id)
{
System.Exception ex;
if(sth)
{
//logic
if(sth1)
{
try
{
//logic
}
catch(ex)
{
throw error(ex.Message);
}
catch
{
throw error("@Label");
}
}
else
{
throw error("@label");
}
}
else
{
throw Error("Label");
}
} catch(ex) will catch all exceptions, therefore the second catch clause can't ever be reached.