com.mongodb
Class MongoException.DuplicateKey
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoException.DuplicateKey
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- MongoException
public static class MongoException.DuplicateKey
- extends MongoException
Subclass of MongoException representing a duplicate key exception
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
MongoException.DuplicateKey
public MongoException.DuplicateKey(int code,
String msg)
- Parameters:
code
- the error codemsg
- the message