BsonSerializationException

class BsonSerializationException(message: String, cause: Throwable?) : BsonException

An exception indicating a failure to serialize or deserialize a BSON value.

Parameters

message

the message

cause

the error cause

Constructors

Link copied to clipboard
fun BsonSerializationException(message: String, cause: Throwable? = null)

constructs a new instance with the given message

Functions

Link copied to clipboard
fun getErrorCode(): Int?

Return the error code if set

Link copied to clipboard
fun hasErrorCode(): Boolean

Returns if the error code is set (i.e., not null).

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
open val message: String?