diff --git a/reference/mongo/mongo/forceerror.xml b/reference/mongo/mongo/forceerror.xml index 1c16c5321a..22229dedf3 100644 --- a/reference/mongo/mongo/forceerror.xml +++ b/reference/mongo/mongo/forceerror.xml @@ -4,7 +4,7 @@ Mongo::forceError - Creates a database error + Creates a database error on the database [deprecated] @@ -13,6 +13,9 @@ public boolMongo::forceError + + Use MongoDB::forceError instead. + diff --git a/reference/mongo/mongo/lasterror.xml b/reference/mongo/mongo/lasterror.xml index 949c6c6502..17dbd29c59 100644 --- a/reference/mongo/mongo/lasterror.xml +++ b/reference/mongo/mongo/lasterror.xml @@ -4,15 +4,18 @@ Mongo::lastError - Check if there was an error on the most recent db operation performed + Check if there was an error on the most recent db operation performed [deprecated] &reftitle.description; - public stringMongo::lastError + public arrayMongo::lastError + + Use MongoDB::lastError instead. + diff --git a/reference/mongo/mongo/preverror.xml b/reference/mongo/mongo/preverror.xml index d90cff995d..14e598e487 100644 --- a/reference/mongo/mongo/preverror.xml +++ b/reference/mongo/mongo/preverror.xml @@ -4,7 +4,7 @@ Mongo::prevError - Checks for the last error thrown during a database operation + Checks for the last error thrown during a database operation [deprecated] @@ -13,6 +13,9 @@ public arrayMongo::prevError + + Use MongoDB::prevError instead. + diff --git a/reference/mongo/mongo/reseterror.xml b/reference/mongo/mongo/reseterror.xml index 877356a653..3842ae9326 100644 --- a/reference/mongo/mongo/reseterror.xml +++ b/reference/mongo/mongo/reseterror.xml @@ -4,7 +4,7 @@ Mongo::resetError - Clears any flagged errors on the connection + Clears any flagged errors on the connection [deprecated] @@ -13,6 +13,9 @@ public arrayMongo::resetError + + Use MongoDB::resetError instead. + diff --git a/reference/mongo/mongodb/forceerror.xml b/reference/mongo/mongodb/forceerror.xml new file mode 100644 index 0000000000..cb81a48c60 --- /dev/null +++ b/reference/mongo/mongodb/forceerror.xml @@ -0,0 +1,48 @@ + + + + + + MongoDB::forceError + Creates a database error + + + + &reftitle.description; + + public boolMongoDB::forceError + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Returns the database response. + + + + diff --git a/reference/mongo/mongodb/lasterror.xml b/reference/mongo/mongodb/lasterror.xml new file mode 100644 index 0000000000..ac6c434e2a --- /dev/null +++ b/reference/mongo/mongodb/lasterror.xml @@ -0,0 +1,48 @@ + + + + + + MongoDB::lastError + Check if there was an error on the most recent db operation performed + + + + &reftitle.description; + + public arrayMongoDB::lastError + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Returns the error, if there was one, or &null;. + + + + diff --git a/reference/mongo/mongodb/preverror.xml b/reference/mongo/mongodb/preverror.xml new file mode 100644 index 0000000000..a5d0db9c77 --- /dev/null +++ b/reference/mongo/mongodb/preverror.xml @@ -0,0 +1,48 @@ + + + + + + MongoDB::prevError + Checks for the last error thrown during a database operation + + + + &reftitle.description; + + public arrayMongoDB::prevError + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Returns the error and the number of operations ago it occurred. + + + + diff --git a/reference/mongo/mongodb/reseterror.xml b/reference/mongo/mongodb/reseterror.xml new file mode 100644 index 0000000000..a871631d5e --- /dev/null +++ b/reference/mongo/mongodb/reseterror.xml @@ -0,0 +1,48 @@ + + + + + + MongoDB::resetError + Clears any flagged errors on the database + + + + &reftitle.description; + + public arrayMongoDB::resetError + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Returns the database response. + + + + diff --git a/reference/mongo/versions.xml b/reference/mongo/versions.xml index e468b611e3..ea82395b70 100644 --- a/reference/mongo/versions.xml +++ b/reference/mongo/versions.xml @@ -40,6 +40,10 @@ + + + +