Share via


SafeHtmlWrapperException constructor (String, Exception)

Initializes a new instance of the SafeHtmlWrapperException class with the specified error message and a reference to the inner exception that is the cause of the exception.

Namespace:  Microsoft.SharePoint.Publishing.Fields
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    exception As Exception _
)
'Usage
Dim message As String
Dim exception As Exception

Dim instance As New SafeHtmlWrapperException(message, _
    exception)
public SafeHtmlWrapperException(
    string message,
    Exception exception
)

Parameters

  • message
    Type: System.String

    The error message that explains the reason for the exception.

  • exception
    Type: System.Exception

    The exception that is the cause of the current exception. If the exception parameter is not a null reference, the current exception is raised in a catch block that handles the inner exception.

See also

Reference

SafeHtmlWrapperException class

SafeHtmlWrapperException members

SafeHtmlWrapperException overload

Microsoft.SharePoint.Publishing.Fields namespace