BsonEncodingException
class BsonEncodingException(message: String, cause: Throwable? = null) : IllegalStateException(source)
Exception thrown when encoding a BsonValue fails.
This typically happens when the data is malformed one way or another.