MongoDB\Driver\WriteConcernException
mSQL
MongoDB Exceptions
PHP Manual

# The MongoDB\Driver\DuplicateKeyException class

(mongodb >=0.2.0)

## Introduction

## Class synopsis

final MongoDB\Driver\DuplicateKeyException extends MongoDB\Driver\WriteException implements MongoDB\Driver\Exception {
/* Inherited properties */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* Inherited methods */
final public ReturnType MongoDB\Driver\WriteException::getWriteResult ( void )
}

MongoDB\Driver\WriteConcernException
mSQL
MongoDB Exceptions
PHP Manual