Table of Contents

Constructor BsonException

Namespace
MongoDB.Bson
Assembly
MongoDB.Bson.dll

BsonException()

Initializes a new instance of the BsonException class.

public BsonException()

BsonException(string)

Initializes a new instance of the BsonException class.

public BsonException(string message)

Parameters

message string

The error message.

BsonException(string, Exception)

Initializes a new instance of the BsonException class.

public BsonException(string message, Exception innerException)

Parameters

message string

The error message.

innerException Exception

The inner exception.

BsonException(string, params object[])

Initializes a new instance of the BsonException class.

public BsonException(string format, params object[] args)

Parameters

format string

The error message format string.

args object[]

One or more args for the error message.

BsonException(SerializationInfo, StreamingContext)

Initializes a new instance of the BsonException class (this overload used by deserialization).

public BsonException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo.

context StreamingContext

The StreamingContext.