MongoDB\Driver\WriteConcernError
PHP Manual

MongoDB\Driver\WriteConcernError::getCode

(mongodb >=1.0.0)

MongoDB\Driver\WriteConcernError::getCodeDescription

Description

final public ReturnType MongoDB\Driver\WriteConcernError::getCode ( void )

Parameters

This function has no parameters.

Return Values

Errors/Exceptions

Examples

Example #1 MongoDB\Driver\WriteConcernError::getCode() example

<?php

/* ... */

?>

The above example will output something similar to:

...

See Also


MongoDB\Driver\WriteConcernError
PHP Manual