mardi 24 mai 2016

Remove a pattern(Try/Catch) in my code? Search Replace?

I have a big complex project where I started out to use try and catch like this :

try
{
}
catch (Exception ex)
{
   throw new ExceptionHandler("", ExceptionType.UnexceptedException, ExceptionSeverity.Error, null, "", ex);
}

Now I need to remove this becouse it have shown to be a bad pattern to follow. Its to much work to do it manually so the question is if there is any tool that could help me? In some cases there might be a finally and if so, then the try should not be removed.

Aucun commentaire:

Enregistrer un commentaire