MongoDB\Driver\WriteConcernError::getMessageReturns the WriteConcernError's error message Description
final public string MongoDB\Driver\WriteConcernError::getMessage()
ParametersThis function has no parameters. Return ValuesReturns the WriteConcernError's error message. Errors/Exceptions
ExamplesExample #1 MongoDB\Driver\WriteConcernError::getMessage example
The above example will output something similar to: string(33) "waiting for replication timed out" See Also |