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