From e56d9eadaaa522905d32aedcf97c4b81b288d381 Mon Sep 17 00:00:00 2001 From: Katherine Walker Date: Tue, 20 Mar 2018 17:23:52 +0000 Subject: [PATCH] Document CommandException https://jira.mongodb.org/browse/PHPC-1089 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@344541 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongodb/exceptions.xml | 1 + .../driver/exception/commandexception.xml | 107 ++++++++++++++++++ .../commandexception/getresultdocument.xml | 62 ++++++++++ reference/mongodb/versions.xml | 2 + 4 files changed, 172 insertions(+) create mode 100644 reference/mongodb/mongodb/driver/exception/commandexception.xml create mode 100644 reference/mongodb/mongodb/driver/exception/commandexception/getresultdocument.xml diff --git a/reference/mongodb/exceptions.xml b/reference/mongodb/exceptions.xml index fb02bf9194..e04ffb80db 100644 --- a/reference/mongodb/exceptions.xml +++ b/reference/mongodb/exceptions.xml @@ -7,6 +7,7 @@ &reference.mongodb.mongodb.driver.exception.authenticationexception; &reference.mongodb.mongodb.driver.exception.bulkwriteexception; + &reference.mongodb.mongodb.driver.exception.commandexception; &reference.mongodb.mongodb.driver.exception.connectionexception; &reference.mongodb.mongodb.driver.exception.connectiontimeoutexception; &reference.mongodb.mongodb.driver.exception.exception; diff --git a/reference/mongodb/mongodb/driver/exception/commandexception.xml b/reference/mongodb/mongodb/driver/exception/commandexception.xml new file mode 100644 index 0000000000..7f9af8f7f3 --- /dev/null +++ b/reference/mongodb/mongodb/driver/exception/commandexception.xml @@ -0,0 +1,107 @@ + + + + + + The MongoDB\Driver\Exception\CommandException class + MongoDB\Driver\Exception\CommandException + + + + +
+ &reftitle.intro; + + Thrown when a command fails. + +
+ + +
+ &reftitle.classsynopsis; + + + + MongoDB\Driver\Exception\CommandException + + + + + MongoDB\Driver\Exception\CommandException + + + + extends + MongoDB\Driver\Exception\RuntimeException + + + + MongoDB\Driver\Exception\Exception + + + + &Properties; + + protected + object + resultDocument + + + &InheritedProperties; + + + &Methods; + + + &InheritedMethods; + + + + + +
+ + + +
+ &reftitle.properties; + + + resultDocument + + + The result document associated with the failed command. + + + + +
+ + + +
+ + &reference.mongodb.mongodb.driver.exception.entities.commandexception; + +
+ + diff --git a/reference/mongodb/mongodb/driver/exception/commandexception/getresultdocument.xml b/reference/mongodb/mongodb/driver/exception/commandexception/getresultdocument.xml new file mode 100644 index 0000000000..aaf48f010b --- /dev/null +++ b/reference/mongodb/mongodb/driver/exception/commandexception/getresultdocument.xml @@ -0,0 +1,62 @@ + + + + + + MongoDB\Driver\Exception\CommandException::getResultDocument + Returns the result document for the failed command + + + + &reftitle.description; + + final public objectMongoDB\Driver\Exception\CommandException::getResultDocument + + + + Returns the result document for the failed command. + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + The result document for the failed command. + + + + + &reftitle.seealso; + + MongoDB\Driver\Manager::executeCommand + + + + + + diff --git a/reference/mongodb/versions.xml b/reference/mongodb/versions.xml index e1488d4e7e..734e7b6b9d 100644 --- a/reference/mongodb/versions.xml +++ b/reference/mongodb/versions.xml @@ -133,6 +133,8 @@ + +