BsonException

fun BsonException(message: String? = null, cause: Throwable? = null, errorCode: Int? = null)

constructs a new instance with the given message, cause and errorCode

Parameters

message

the error message

cause

the error cause

errorCode

the error code