MongoDB\Driver\WriteConcernError::getCodeReturns the WriteConcernError's error code Description
final public int MongoDB\Driver\WriteConcernError::getCode()
ParametersThis function has no parameters. Return ValuesReturns the WriteConcernError's error code. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteConcernError::getCode example
The above example will output something similar to: int(64) See Also |