java.lang.Object | ||||||
↳ | java.util.AbstractMap<K, V> | |||||
↳ | java.util.HashMap<K, V> | |||||
↳ | java.util.LinkedHashMap<K, V> | |||||
↳ | org.bson.BasicBSONObject | |||||
↳ | com.mongodb.BasicDBObject | |||||
↳ | com.mongodb.CommandResult |
A simple wrapper for the result of getLastError() calls and other commands
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
gets the "errmsg" field which holds the error message
| |||||||||||
utility method to create an exception with the command name
| |||||||||||
gets the "ok" field which is the result of the command
| |||||||||||
throws an exception containing the cmd name, in case the command failed, or the "err/code" information
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.mongodb.BasicDBObject
| |||||||||||
From class
org.bson.BasicBSONObject
| |||||||||||
From class
java.util.LinkedHashMap
| |||||||||||
From class
java.util.HashMap
| |||||||||||
From class
java.util.AbstractMap
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.mongodb.DBObject
| |||||||||||
From interface
java.util.Map
| |||||||||||
From interface
org.bson.BSONObject
|
gets the "errmsg" field which holds the error message
utility method to create an exception with the command name
gets the "ok" field which is the result of the command
throws an exception containing the cmd name, in case the command failed, or the "err/code" information
MongoException |
---|