Skip to content

MongoSyntaxException

class MongoSyntaxException(
    val errorMessage: String, 
    val code: Int, 
    val codeName: String, 
    val fullResponse: BsonDocument, 
    val server: MongoException.ServerAddress, 
    val command: Command, 
    val namespace: String, 
    cause: Throwable? = null
) : MongoException

MongoDB refused to execute a command because it is malformed.

Constructors

MongoSyntaxException

constructor(
    errorMessage: String, 
    code: Int, 
    codeName: String, 
    fullResponse: BsonDocument, 
    server: MongoException.ServerAddress, 
    command: Command, 
    namespace: String, 
    cause: Throwable? = null
)

Properties

cause

expect open val cause: Throwable?

code

val code: Int

codeName

command

errorMessage

fullResponse

message

expect open val message: String?

namespace

server