Share via


AdomdException Constructor (String, Exception)

Initializes a new instance of the AdomdException class with a given message and an inner exception.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Syntax

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

Dim instance As New AdomdException(message, _
    innerException)
public AdomdException(
    string message,
    Exception innerException
)
public:
AdomdException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> AdomdException
public function AdomdException(
    message : String, 
    innerException : Exception
)

Parameters

  • message
    Type: System.String
    A string containing the message for the exception.
  • innerException
    Type: System.Exception
    An instance of the Exception that caused the current exception.

Remarks

When an exception X is thrown as a direct result of a previous exception Y, the InnerException property of X should contain a reference to Y.