From fd886889b78b41f4672747b15d3efbf1883fb4e0 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Mon, 23 Aug 2010 23:03:59 +0000 Subject: [PATCH] new error codes git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302724 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocursorexception.xml | 25 +++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/reference/mongo/mongocursorexception.xml b/reference/mongo/mongocursorexception.xml index ab3a604858..f9d85e19ba 100644 --- a/reference/mongo/mongocursorexception.xml +++ b/reference/mongo/mongocursorexception.xml @@ -19,7 +19,7 @@ If there is an error receiving a reply, there will be a more specific error message to help diagnose the problem. As it is a bit programmatically awkward to parse an exception message, there is also an - error code associated with each cause of the exception. + error code associated with each cause of the exception. @@ -172,7 +172,30 @@ If the response was cached and now cannot be located. + + + various + + + Code: 10 + + + No code given by the database. + + + + + E11000 duplicate key error index: foo.bar.$X dup key: { /* ... */ } + + + Code: 11000 + + + Database error for duplicate keys. + + +