Package | Description |
---|---|
com.mongodb |
Main package with core files.
|
Modifier and Type | Class and Description |
---|---|
class |
BulkWriteException
An exception that represents all errors associated with a bulk write operation.
|
class |
CommandFailureException
Deprecated.
Use
instead . |
static class |
DBPortPool.ConnectionWaitTimeOut
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoTimeoutException instead. |
static class |
DBPortPool.NoMoreConnection
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoClientException instead. |
static class |
DBPortPool.SemaphoresOut
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoWaitQueueFullException instead. |
class |
DuplicateKeyException
Subclass of
WriteConcernException representing a duplicate key exception. |
class |
MongoClientException
A base class for exceptions indicating a failure condition within the driver.
|
class |
MongoCommandException
An exception indicating that a command sent to a MongoDB server returned a failure.
|
class |
MongoCursorNotFoundException
Subclass of
MongoException representing a cursor-not-found exception. |
static class |
MongoException.CursorNotFound
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoCursorNotFoundException instead. |
static class |
MongoException.DuplicateKey
Deprecated.
This class will be dropped in 3.x versions.
Please catch
DuplicateKeyException instead. |
static class |
MongoException.Network
Deprecated.
This class will be dropped in 3.x versions.
Please catch
MongoSocketException instead. |
class |
MongoExecutionTimeoutException
Exception indicating that the execution of the current operation timed outas a result of the maximum operation time being exceeded.
|
class |
MongoIncompatibleDriverException
An exception indicating that this version of the driver is not compatible with at least one of the servers that it is currently
connected to.
|
class |
MongoInternalException
A Mongo exception internal to the driver, not carrying any error code.
|
class |
MongoInterruptedException
A non-checked exception indicating that the driver has been interrupted by a call to Thread.interrupt.
|
class |
MongoServerSelectionException
Deprecated.
No longer thrown. Catch MongoTimeoutException instead
|
class |
MongoSocketException
Subclass of
MongoException representing a network-related exception. |
class |
MongoTimeoutException
An exception indicating that the driver has timed out waiting for either a server or a connection to become available.
|
class |
MongoWaitQueueFullException
An exception indicating that the queue for waiting for a pooled connection is full.
|
class |
WriteConcernException
An exception representing an error reported due to a write failure.
|
Modifier and Type | Method and Description |
---|---|
MongoException |
CommandResult.getException()
Utility method to create an exception from a failed command.
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBRefBase.fetch()
Deprecated.
use
DBCollection.findOne(Object) instead |