Package | Description |
---|---|
com.mongodb |
This package is the main entry point to the MongoDB Java Driver, and it contains the classes for the existing API from 2.x versions.
|
Modifier and Type | Class and Description |
---|---|
class |
BulkWriteException
An exception that represents all errors associated with a bulk write operation.
|
class |
DuplicateKeyException
Subclass of
WriteConcernException representing a duplicate key exception |
class |
MongoBulkWriteException
An exception that represents all errors associated with a bulk write operation.
|
class |
MongoClientException
A base class for exceptions indicating a failure condition with the MongoClient.
|
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. |
class |
MongoExecutionTimeoutException
Exception indicating that the execution of the current operation timed out as a result of the maximum operation time being exceeded.
|
class |
MongoGridFSException
An exception indicating that a failure occurred in GridFS.
|
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 |
MongoNodeIsRecoveringException
An exception indicating that the server is a member of a replica set but is in recovery mode, and therefore refused to execute
the operation.
|
class |
MongoNotPrimaryException
An exception indicating that the server is a member of a replica set but is not the primary, and therefore refused to execute either a
write operation or a read operation that required a primary.
|
class |
MongoQueryException
An exception indicating that a query operation failed on the server.
|
class |
MongoSecurityException
This exception is thrown when there is an error reported by the underlying client authentication mechanism.
|
class |
MongoServerException
An exception indicating that some error has been raised by a MongoDB server in response to an operation.
|
class |
MongoSocketClosedException
This exception is thrown when trying to read or write from a closed socket.
|
class |
MongoSocketException
Subclass of
MongoException representing a network-related exception |
class |
MongoSocketOpenException
This exception is thrown when there is an exception opening a Socket.
|
class |
MongoSocketReadException
This exception is thrown when there is an exception reading a response from a Socket.
|
class |
MongoSocketReadTimeoutException
This exception is thrown when there is a timeout reading a response from the socket.
|
class |
MongoSocketWriteException
This exception is thrown when there is an exception writing a response to a Socket.
|
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 |
MongoWriteConcernException
An exception indicating a failure to apply the write concern to the requested write operation
|
class |
MongoWriteException
An exception indicating the failure of a write operation.
|
class |
WriteConcernException
An exception representing an error reported due to a write failure.
|
Modifier and Type | Method and Description |
---|---|
static MongoException |
MongoException.fromThrowable(Throwable t)
Static helper to create or cast a MongoException from a throwable
|
MongoException |
CommandResult.getException()
Utility method to create an exception from a failed command.
|
Copyright © 2016. All Rights Reserved.