The MongoDB\Driver\WriteConcernError class

(mongodb >=1.0.0)

简介

The MongoDB\Driver\WriteConcernError class encapsulates information about a write concern error and may be returned by MongoDB\Driver\WriteResult::getWriteConcernError().

类摘要

final class MongoDB\Driver\WriteConcernError {
/* 属性 */
public readonly string $message;
public readonly int $code;
public readonly ?object $info;
/* 方法 */
final public function getCode(): int
final public function getInfo(): ?object
final public function getMessage(): string
}

属性

message

The error message.

code

The error code.

info

Additional information for the error, or null if not available.

更新日志

版本 说明
PECL mongodb 2.3.0 Added public readonly properties.

目录

+添加备注

用户贡献的备注

此页面尚无用户贡献的备注。