Remove "throw ex" code.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user