Share via


TextExceptionFormatter.WriteException Method

Writes and formats the exception and all nested inner exceptions to the TextWriter.

Namespace: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling
Assembly: Microsoft.Practices.EnterpriseLibrary.ExceptionHandling (in Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll) Version: 6.0.0.0 (6.0.1304.0)

Syntax

protected override void WriteException(
    Exception exceptionToFormat,
    Exception outerException
)
'Declaration
Protected Overrides Sub WriteException ( 
    exceptionToFormat As Exception,
    outerException As Exception
)
protected:
virtual void WriteException(
    Exception^ exceptionToFormat, 
    Exception^ outerException
) override

Parameters

  • outerException
    Type: System.Exception
    The outer exception. This value will be null when writing the outer-most exception.

See Also

TextExceptionFormatter Class

TextExceptionFormatter Members

Microsoft.Practices.EnterpriseLibrary.ExceptionHandling Namespace