Share via


ModelingException Constructors

Definition

Overloads

ModelingException()

Initializes a new instance of the ModelingException class.

ModelingException(String)

Initializes a new instance of the ModelingException class with a specified error message.

ModelingException(SerializationInfo, StreamingContext)

Initializes a new instance of the ModelingException class with serialized data.

ModelingException(String, Exception)

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

ModelingException()

Initializes a new instance of the ModelingException class.

public:
 ModelingException();
public ModelingException ();
Public Sub New ()

Applies to

ModelingException(String)

Initializes a new instance of the ModelingException class with a specified error message.

public:
 ModelingException(System::String ^ message);
public ModelingException (string message);
new Microsoft.VisualStudio.Modeling.ModelingException : string -> Microsoft.VisualStudio.Modeling.ModelingException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

Applies to

ModelingException(SerializationInfo, StreamingContext)

Initializes a new instance of the ModelingException class with serialized data.

protected:
 ModelingException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ModelingException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.VisualStudio.Modeling.ModelingException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.VisualStudio.Modeling.ModelingException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The object that holds the serialized object data.

context
StreamingContext

The contextual information about the source or destination.

Applies to

ModelingException(String, Exception)

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

public:
 ModelingException(System::String ^ message, Exception ^ innerException);
public ModelingException (string message, Exception innerException);
new Microsoft.VisualStudio.Modeling.ModelingException : string * Exception -> Microsoft.VisualStudio.Modeling.ModelingException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The error message that explains the reason for the exception.

innerException
Exception

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

Applies to