Table of Contents

Method CreateCannotDeserializeFromBsonTypeException

Namespace
MongoDB.Bson.Serialization.Serializers
Assembly
MongoDB.Bson.dll

CreateCannotDeserializeFromBsonTypeException(BsonType)

Creates an exception to throw when a type cannot be deserialized from a BsonType.

protected Exception CreateCannotDeserializeFromBsonTypeException(BsonType bsonType)

Parameters

bsonType BsonType

The BSON type.

Returns

Exception

An exception.