The MongoDB\Driver\WriteConcernError class

はじめに

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

クラス概要

MongoDB\Driver\WriteConcernError
final class MongoDB\Driver\WriteConcernError {
/* プロパティ */
public readonly string $message;
public readonly int $code;
public readonly objectnull $info;
/* メソッド */
final public int getCode()
final public objectnull getInfo()
final public string getMessage()
}

プロパティ

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.
目次