update page now

The MongoDB\Driver\WriteConcernError class

(mongodb >=1.0.0)

Introduction

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

Class synopsis

final class MongoDB\Driver\WriteConcernError {
/* Properties */
public readonly string $message;
public readonly int $code;
public readonly ?object $info;
/* Methods */
final public getCode(): int
final public getInfo(): ?object
final public getMessage(): string
}

Properties

message
The error message.
code
The error code.
info
Additional information for the error, or null if not available.

Changelog

Version Description
PECL mongodb 2.3.0 Added public readonly properties.

Table of Contents

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top