BsonInvalidOperationException

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

An exception indicating an invalid BSON operation.

Parameters

message

the message

cause

the cause

Constructors

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

constructs a new instance with the given message and cause

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?