Udostępnij za pośrednictwem


OciException Constructors

Definition

Creates a new instance of the OciException class.

Overloads

OciException()

Creates a new instance of the OciException class.

OciException(String)

Creates a new instance of the OciException class with a specified error message.

OciException(SerializationInfo, StreamingContext)

Creates a new instance of the OciException class with serialized data.

OciException(String, Exception)

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

OciException()

Creates a new instance of the OciException class.

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

Remarks

This constructor initializes the Message property of the new instance to a system-supplied message that describes the error.

The following table shows the initial property values for an instance of OciException.

Property Value
InnerException A null reference.
Message A system-supplied localized description.

Applies to

OciException(String)

Creates a new instance of the OciException class with a specified error message.

public:
 OciException(System::String ^ message);
public OciException (string message);
new Microsoft.SqlServer.Replication.OciException : string -> Microsoft.SqlServer.Replication.OciException
Public Sub New (message As String)

Parameters

message
String

A message that describes the error.

Remarks

The following table shows the initial property values for an instance of OciException.

Property Value
InnerException A null reference.
Message The error message string.

Applies to

OciException(SerializationInfo, StreamingContext)

Creates a new instance of the OciException class with serialized data.

protected:
 OciException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected OciException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.SqlServer.Replication.OciException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.SqlServer.Replication.OciException
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.

Remarks

This constructor is called during deserialization to reconstitute the exception object transmitted over a stream.

Applies to

OciException(String, Exception)

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

public:
 OciException(System::String ^ message, Exception ^ innerException);
public OciException (string message, Exception innerException);
new Microsoft.SqlServer.Replication.OciException : string * Exception -> Microsoft.SqlServer.Replication.OciException
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.

Remarks

The following table shows the initial property values for an instance of OciException.

Property Value
InnerException The inner exception reference.
Message The error message string.

Applies to