Package com.mongodb
Class MongoQueryException
- java.lang.Object
 - 
- java.lang.Throwable
 - 
- java.lang.Exception
 - 
- java.lang.RuntimeException
 - 
- com.mongodb.MongoException
 - 
- com.mongodb.MongoServerException
 - 
- com.mongodb.MongoQueryException
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
 java.io.Serializable
- Direct Known Subclasses:
 MongoCursorNotFoundException
@Deprecated(since="2021-05-27") public class MongoQueryException extends MongoServerException
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An exception indicating that a query operation failed on the server.- Since:
 - 3.0
 - See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
- 
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL 
 - 
 
- 
Constructor Summary
Constructors Constructor Description MongoQueryException(MongoCommandException commandException)Deprecated.Construct an instance from a command exception.MongoQueryException(ServerAddress address, int errorCode, java.lang.String errorMessage)Deprecated.Construct an instance. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intgetErrorCode()Deprecated.Gets the error code for this query failure.java.lang.StringgetErrorMessage()Deprecated.Gets the error message for this query failure.- 
Methods inherited from class com.mongodb.MongoServerException
getServerAddress 
- 
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
MongoQueryException
public MongoQueryException(ServerAddress address, int errorCode, java.lang.String errorMessage)
Deprecated.Construct an instance.- Parameters:
 address- the server addresserrorCode- the error codeerrorMessage- the error message
 
- 
MongoQueryException
public MongoQueryException(MongoCommandException commandException)
Deprecated.Construct an instance from a command exception.- Parameters:
 commandException- the command exception- Since:
 - 3.7
 
 
 - 
 
 -