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
An exception indicating a failed command.
|
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 |
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
An 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 |
class |
MongoSocketException
Subclass of
MongoException representing a network-related exception. |
class |
MongoTimeoutException |
class |
MongoWaitQueueFullException |
class |
UnacknowledgedWriteException
This exception is thrown if the application attempts to get information about the result of an unacknowledged write.
|
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 with the command name
|
Modifier and Type | Method and Description |
---|---|
DBObject |
DBRefBase.fetch()
fetches the object referenced from the database
|