public class MongoQueryException extends MongoServerException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
Constructor and Description |
---|
MongoQueryException(MongoCommandException commandException)
Construct an instance from a command exception.
|
MongoQueryException(ServerAddress address,
int errorCode,
java.lang.String errorMessage)
Construct an instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Gets the error code for this query failure.
|
java.lang.String |
getErrorMessage()
Gets the error message for this query failure.
|
getServerAddress
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
public MongoQueryException(ServerAddress address, int errorCode, java.lang.String errorMessage)
address
- the server addresserrorCode
- the error codeerrorMessage
- the error messagepublic MongoQueryException(MongoCommandException commandException)
commandException
- the command exceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved