Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ReflectionUtils.GetExplicitBaseException Method

Returns the explicit Exception that is the root cause of an exception.

[Visual Basic]
Public Shared Sub GetExplicitBaseException( _
   ByVal ex As Exception _
)
[C#]
public static Exception GetExplicitBaseException(
   Exception ex
);

Parameters

ex
The last exception thrown.

Return Value

The first explicit exception thrown in a chain of exceptions.

Remarks

If the InnerException property of the current exception is a null reference or a NullReferenceException, returns the current exception.

See Also

ReflectionUtils Class | Spring.Util Namespace