Documentación offline PHP master

MongoDB\Driver\Exception Clases de excepciones

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

Clases de excepciones#

La jerarquía de clases para las excepciones de MongoDB está modelada siguiendo la de las excepciones SPL. Las clases base extienden su contraparte de SPL y todas las clases de excepciones en la extensión implementan la interfaz MongoDB\Driver\Exception\Exception.

  • MongoDB\Driver\Exception\LogicException (extiende LogicException)

  • MongoDB\Driver\Exception\InvalidArgumentException (extiende InvalidArgumentException)

  • MongoDB\Driver\Exception\UnexpectedValueException (extiende UnexpectedValueException)

  • MongoDB\Driver\Exception\RuntimeException (extiende RuntimeException)

  • MongoDB\Driver\Exception\ConnectionException

    • MongoDB\Driver\Exception\AuthenticationException

    • MongoDB\Driver\Exception\ConnectionTimeoutException

    • MongoDB\Driver\Exception\SSLConnectionException (obsoleto)

  • MongoDB\Driver\Exception\EncryptionException

  • MongoDB\Driver\Exception\ServerException

    • MongoDB\Driver\Exception\BulkWriteCommandException

    • MongoDB\Driver\Exception\CommandException

    • MongoDB\Driver\Exception\ExecutionTimeoutException

    • MongoDB\Driver\Exception\WriteException (obsoleto)

    • MongoDB\Driver\Exception\BulkWriteException