You need to sign in to do that
Don't have an account?

A catch statement that catches an exception only to rethrow it should be avoided
I am getting this error in sonarqube report, please suggest me how to avoid. below is the piece of code giving error.
Catch(Exception ex)
{
throw ex;
}
Catch(Exception ex)
{
throw ex;
}
Can you elaborate the scenario you are implementing and the issue you are facing to check further.
Looking forward to your response.
Thanks.