SqlTypeException Constructors

Definition

Initializes a new instance of the SqlTypeException class.

Overloads

SqlTypeException()

Initializes a new instance of the SqlTypeException class.

SqlTypeException(String)

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

SqlTypeException(SerializationInfo, StreamingContext)

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

SqlTypeException(String, Exception)

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

SqlTypeException()

Initializes a new instance of the SqlTypeException class.

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

SqlTypeException(String)

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

public:
 SqlTypeException(System::String ^ message);
public SqlTypeException (string message);
new System.Data.SqlTypes.SqlTypeException : string -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String)

Parameters

message
String

The error message that explains the reason for the exception.

SqlTypeException(SerializationInfo, StreamingContext)

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

protected:
 SqlTypeException(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext sc);
protected SqlTypeException (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext sc);
new System.Data.SqlTypes.SqlTypeException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.SqlTypes.SqlTypeException
Protected Sub New (si As SerializationInfo, sc As StreamingContext)

Parameters

si
SerializationInfo

The object that holds the serialized object data.

sc
StreamingContext

The contextual information about the source or destination.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream. For more information, see XML and SOAP Serialization.

See also

SqlTypeException(String, Exception)

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

public:
 SqlTypeException(System::String ^ message, Exception ^ e);
public SqlTypeException (string message, Exception e);
new System.Data.SqlTypes.SqlTypeException : string * Exception -> System.Data.SqlTypes.SqlTypeException
Public Sub New (message As String, e As Exception)

Parameters

message
String

The message that describes the exception. The caller of this constructor is required to ensure that this string has been localized for the current system culture.

e
Exception

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

Applies to