Share via


WebserviceTaskException Constructors

Definition

Initializes a new instance of the WebserviceTaskException class.

Overloads

WebserviceTaskException(String)

Initializes a new instance of the WebserviceTaskException class, initializing the error message string.

WebserviceTaskException(SerializationInfo, StreamingContext)

Initializes a new instance of the WebserviceTaskException class, initializing the SerializationInfo and StreamingContext.

WebserviceTaskException(String, Int32)

Initializes a new instance of the WebserviceTaskException class, intializing the error message and error code.

WebserviceTaskException(String)

Initializes a new instance of the WebserviceTaskException class, initializing the error message string.

public:
 WebserviceTaskException(System::String ^ errorMessage);
public WebserviceTaskException (string errorMessage);
new Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException : string -> Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException
Public Sub New (errorMessage As String)

Parameters

errorMessage
String

The error message string to be used in the exception.

Remarks

For this constructor, the message string is set to the errorMessage parameter, and the error code set to DEFAULT_CODE.

Applies to

WebserviceTaskException(SerializationInfo, StreamingContext)

Initializes a new instance of the WebserviceTaskException class, initializing the SerializationInfo and StreamingContext.

public:
 WebserviceTaskException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public WebserviceTaskException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException
Public Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Applies to

WebserviceTaskException(String, Int32)

Initializes a new instance of the WebserviceTaskException class, intializing the error message and error code.

public:
 WebserviceTaskException(System::String ^ errorMessage, int errorCode);
public WebserviceTaskException (string errorMessage, int errorCode);
new Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException : string * int -> Microsoft.SqlServer.Dts.Tasks.WebServiceTask.WebserviceTaskException
Public Sub New (errorMessage As String, errorCode As Integer)

Parameters

errorMessage
String

The error message to use in the exception.

errorCode
Int32

The error code to use in the exception.

Remarks

For this constructor, the class is initialized with the message string set to the errorMessage string that is passed in, and its error code is set to the errorCode parameter that is passed in.

Applies to