final class WriteConcernError (View source)

The MongoDB\Driver\WriteConcernError class encapsulates information about a write concern error and may be returned by MongoDB\Driver\WriteResult::getWriteConcernError().

Methods

__wakeup()

No description

int
getCode()

Returns the WriteConcernError's error code

object|null
getInfo()

Returns additional metadata for the WriteConcernError

string
getMessage()

Returns the WriteConcernError's error message

Details

final __wakeup()

No description

final int getCode()

Returns the WriteConcernError's error code

Return Value

int

final object|null getInfo()

Returns additional metadata for the WriteConcernError

Return Value

object|null

final string getMessage()

Returns the WriteConcernError's error message

Return Value

string