SmoException SmoException SmoException Constructors

Definition

Overloads

SmoException() SmoException() SmoException()

Initializes a new instance of the SmoException class.

SmoException(String) SmoException(String) SmoException(String)

Initializes a new instance of the SmoException class with the specified message.

SmoException(SerializationInfo, StreamingContext) SmoException(SerializationInfo, StreamingContext) SmoException(SerializationInfo, StreamingContext)

Initializes a new instance of the SmoException class with the specified serialization information and streaming context.

SmoException(String, Exception) SmoException(String, Exception) SmoException(String, Exception)

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

SmoException() SmoException() SmoException()

Initializes a new instance of the SmoException class.

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

Examples

Handling SMO Exceptions

Remarks

The default constructor initializes any fields to their default values.

SmoException(String) SmoException(String) SmoException(String)

Initializes a new instance of the SmoException class with the specified message.

public:
 SmoException(System::String ^ message);
public SmoException (string message);
Public Sub New (message As String)
Parameters
message
String String String

A String value that specifies the message string for the SMO exception.

Examples

Handling SMO Exceptions

SmoException(SerializationInfo, StreamingContext) SmoException(SerializationInfo, StreamingContext) SmoException(SerializationInfo, StreamingContext)

Initializes a new instance of the SmoException class with the specified serialization information and streaming context.

protected:
 SmoException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected SmoException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
info
SerializationInfo SerializationInfo SerializationInfo

A SerializationInfo object that specifies the serialization information.

context
StreamingContext StreamingContext StreamingContext

A StreamingContext context that specifies the streaming context.

Examples

Handling SMO Exceptions

SmoException(String, Exception) SmoException(String, Exception) SmoException(String, Exception)

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

public:
 SmoException(System::String ^ message, Exception ^ innerException);
public SmoException (string message, Exception innerException);
Public Sub New (message As String, innerException As Exception)
Parameters
message
String String String

A String value that specifies the message string for the SMO exception.

innerException
Exception Exception Exception

An Exception system object that specifies the exception on which to base the referenced object.

Examples

Handling SMO Exceptions

Applies to