opensavvy.ktmongo.dsl.command.errors¶
Types¶
MongoException¶
sealed class MongoException : RuntimeException
Something went wrong while exchanging information with the database.
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.
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.