Constructor BsonException
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
stringThe error message.
BsonException(string, Exception)
Initializes a new instance of the BsonException class.
public BsonException(string message, Exception innerException)
Parameters
BsonException(string, params object[])
Initializes a new instance of the BsonException class.
public BsonException(string format, params object[] args)
Parameters
format
stringThe 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
SerializationInfoThe SerializationInfo.
context
StreamingContextThe StreamingContext.