BsonException

open class BsonException(message: String?, cause: Throwable?, errorCode: Int?) : RuntimeException

A general runtime exception raised in BSON processing.

Parameters

message

the error message

cause

the error cause

errorCode

the error code

Constructors

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

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

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?

Inheritors

Link copied to clipboard
Link copied to clipboard