inner exception
The original exception kept inside a newer one that wraps it.
Exception.InnerException holds the exception that caused the current one, set by passing it to the wrapping exception's constructor.
Examples
throw new ImportException("Bad line 3", ex);keeps the originalexas the new exception'sInnerException.
See also