Share via


SPDatabaseException Constructor (String, Exception)

Initializes a new instance of the SPDatabaseException class based on the specified error string and exception.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    error As String, _
    e As Exception _
)
'Usage
Dim error As String
Dim e As Exception

Dim instance As New SPDatabaseException(error, e)
public SPDatabaseException(
    string error,
    Exception e
)

Parameters

  • error
    Type: System.String

    A string containing the message that explains the reason for the exception.

  • e
    Type: System.Exception

    A System.Exception object that represents the cause of the exception.

See Also

Reference

SPDatabaseException Class

SPDatabaseException Members

SPDatabaseException Overload

Microsoft.SharePoint.Administration Namespace