Skip to content

MongoWriteException

class MongoWriteException(
    message: String = "Write failed", 
    val server: MongoException.ServerAddress, 
    val command: Command, 
    val errors: List<MongoWriteException.WriteErrorData>, 
    val namespace: String, 
    cause: Throwable? = null
) : MongoException

A write operation failed.

Constructors

MongoWriteException

constructor(
    message: String = "Write failed", 
    server: MongoException.ServerAddress, 
    command: Command, 
    errors: List<MongoWriteException.WriteErrorData>, 
    namespace: String, 
    cause: Throwable? = null
)

Types

WriteErrorData

interface WriteErrorData

Information about a failed write.

Properties

cause

expect open val cause: Throwable?

command

errors

message

expect open val message: String?

namespace

server