public class MongoSecurityException extends MongoClientException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL| Constructor and Description |
|---|
MongoSecurityException(MongoCredential credential,
String message)
Construct an instance
|
MongoSecurityException(MongoCredential credential,
String message,
Throwable cause)
Construct an instance
|
| Modifier and Type | Method and Description |
|---|---|
MongoCredential |
getCredential()
The credential being authenticated.
|
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabeladdSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoSecurityException(MongoCredential credential, String message, Throwable cause)
credential - the credentialmessage - the messagecause - the causepublic MongoSecurityException(MongoCredential credential, String message)
credential - the credentialmessage - the messagepublic MongoCredential getCredential()
Copyright © 2010 - 2020 Adobe. All Rights Reserved