MongoDB Exception Class Tree
The class hierarchy for MongoDB exceptions is modeled after that of the SPL Exceptions. Base classes extend their SPL counterpart and all exception classes in the extension implement the MongoDB\Driver\Exception\Exception interface.
MongoDB\Driver\Exception\LogicException (extends LogicException)
MongoDB\Driver\Exception\InvalidArgumentException (extends InvalidArgumentException)
MongoDB\Driver\Exception\UnexpectedValueException (extends UnexpectedValueException)
-
MongoDB\Driver\Exception\RuntimeException (extends RuntimeException)
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
