The MongoDB\Driver\WriteError class

(mongodb >=1.0.0)

Introduction

The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors().

Class synopsis

finalclassMongoDB\Driver\WriteError {
finalpublicgetCode(): int
finalpublicgetIndex(): int
finalpublicgetInfo(): ?object
finalpublicgetMessage(): string
}

Table of Contents

To Top