Share via


XPathException Constructor (String, Exception)

Initializes a new instance of the XPathException class with the specified message and inner exception.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoEnum (in microsoft.sqlserver.smoenum.dll)

Syntax

'Declaration
Public Sub New ( _
    msg As String, _
    e As Exception _
)
public XPathException (
    string msg,
    Exception e
)
public:
XPathException (
    String^ msg, 
    Exception^ e
)
public XPathException (
    String msg, 
    Exception e
)
public function XPathException (
    msg : String, 
    e : Exception
)

Parameters

  • msg
    A String value that specifies the message that is associated with the Xpath exception.
  • e
    An Exception system object that specifies the inner exception that caused the Xpath exception to be raised.

Remarks

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Example

How to: Catch an Exception in Visual Basic .NET

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

XPathException Class
XPathException Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Handling SMO Exceptions