Gets the
System.Exception instance that caused the current exception.
'Declaration
Public ReadOnly Property InnerException As Exception
public Exception InnerException {get;}
Property Value
An instance of Exception that describes the error that caused the current exception. The InnerException property returns the same value as was passed into the constructor, or a null reference (Nothing in Visual Basic) if the inner exception value was not supplied to the constructor. This property is read-only.