Edit

Share via


DatabaseException Constructors

Definition

Overloads

DatabaseException()

Initializes a new instance of the DatabaseException class.

DatabaseException(String)

Initializes a new instance of the DatabaseException class.

DatabaseException(String, Exception)

Initializes a new instance of the DatabaseException class.

DatabaseException(String, Int32, Int32, RequestInfo)

Initializes a new instance of the DatabaseException class.

DatabaseException(String, Exception, Int32, Int32, RequestInfo)

Initializes a new instance of the DatabaseException class.

DatabaseException()

Initializes a new instance of the DatabaseException class.

C#
public DatabaseException();

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

DatabaseException(String)

Initializes a new instance of the DatabaseException class.

C#
public DatabaseException(string message);

Parameters

message
String

The exception message.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

DatabaseException(String, Exception)

Initializes a new instance of the DatabaseException class.

C#
public DatabaseException(string message, Exception innerException);

Parameters

message
String

The exception message.

innerException
Exception

The inner exception causing this exception.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

DatabaseException(String, Int32, Int32, RequestInfo)

Initializes a new instance of the DatabaseException class.

C#
public DatabaseException(string message, int statusCode, int subStatusCode, System.Cloud.DocumentDb.RequestInfo requestInfo);

Parameters

message
String

The exception message.

statusCode
Int32

Exception status code.

subStatusCode
Int32

Exception sub status code.

requestInfo
RequestInfo

The request.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

DatabaseException(String, Exception, Int32, Int32, RequestInfo)

Initializes a new instance of the DatabaseException class.

C#
public DatabaseException(string message, Exception innerException, int statusCode, int subStatusCode, System.Cloud.DocumentDb.RequestInfo requestInfo);

Parameters

message
String

The exception message.

innerException
Exception

The inner exception causing this exception.

statusCode
Int32

Exception status code.

subStatusCode
Int32

Exception sub status code.

requestInfo
RequestInfo

The request.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)