Share via


ExceptionUtility.FormatExceptionHandlingExceptionMessage Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Formats an exception message so that it can be sent to the event log later, by someone else.

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

Syntax

'Declaration
PublicSharedFunctionFormatExceptionHandlingExceptionMessage ( _
    policyNameAs String, _
    offendingExceptionAs Exception, _
    chainExceptionAs Exception, _
    originalExceptionAs Exception _
) As String
publicstatic string FormatExceptionHandlingExceptionMessage(
    string policyName,
    Exception offendingException,
    Exception chainException,
    Exception originalException
)
public:
static String^ FormatExceptionHandlingExceptionMessage(
    String^ policyName, 
    Exception^ offendingException, 
    Exception^ chainException, 
    Exception^ originalException
)
publicstaticfunctionFormatExceptionHandlingExceptionMessage(
    policyName : String, 
    offendingException : Exception, 
    chainException : Exception, 
    originalException : Exception
) : String

Parameters

  • offendingException
    Type: System.Exception
    The exception that occured in the chain.

See Also

ExceptionUtility Class

Microsoft.Practices.EnterpriseLibrary.ExceptionHandling Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.