Remove "throw ex" code.

This commit is contained in:
bbaia
2008-06-23 07:35:43 +00:00
parent 8bdae60623
commit 587151854b
4 changed files with 11 additions and 11 deletions

View File

@@ -232,7 +232,7 @@ namespace Spring.Aop.Framework.Adapter
catch (Exception ex)
{
LookupAndInvokeAnyHandler(ex, invocation);
throw ex;
throw;
}
}
@@ -310,8 +310,8 @@ namespace Spring.Aop.Framework.Adapter
handlerMethod.Invoke(this.throwsAdvice, handlerArgs);
}
catch (TargetInvocationException ex)
{
throw ex.InnerException;
{
throw ReflectionUtils.UnwrapTargetInvocationException(ex);
}
}
}

View File

@@ -158,10 +158,10 @@ namespace Spring.Objects.Support
{
propertyValue = ow.GetPropertyValue(this.sortDefinition.Property);
}
catch (InvalidPropertyException ex)
catch (InvalidPropertyException)
{
// the property doesn't exist in the first place, so let exception through...
throw ex;
throw;
}
catch (ObjectsException ex)
{

View File

@@ -87,10 +87,10 @@ namespace Spring.Threading
Monitor.Wait(this);
--nPermits;
}
catch (ThreadInterruptedException ex)
catch (ThreadInterruptedException)
{
Monitor.Pulse(this);
throw ex;
throw;
}
}
}
@@ -134,10 +134,10 @@ namespace Spring.Threading
}
}
}
catch (ThreadInterruptedException ex)
catch (ThreadInterruptedException)
{
Monitor.Pulse(this);
throw ex;
throw;
}
}
}

View File

@@ -67,8 +67,8 @@ namespace Spring.Util
}
catch (TargetInvocationException ex)
{
// unwrap the exception that actually caused the TargetInvocationException and throw that...
throw ex.GetBaseException();
// unwrap the exception that actually caused the TargetInvocationException and throw that...
throw ReflectionUtils.UnwrapTargetInvocationException(ex);
}
}
}