MongoDB\Driver\WriteError::getInfo

Returns metadata document for the WriteError

Description

final public objectnull MongoDB\Driver\WriteError::getInfo()

Parameters

This function has no parameters.

Return Values

Returns the metadata document for the WriteError, or null if no metadata is available.

Errors/Exceptions

  • Throws MongoDB\Driver\Exception\InvalidArgumentException on argument parsing errors.