Package com.mongodb
Class MongoSecurityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoClientException
com.mongodb.MongoSecurityException
- All Implemented Interfaces:
Serializable
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
This exception is thrown when there is an error reported by the underlying client authentication mechanism.
- Since:
- 3.0
- See Also:
-
Field Summary
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
Constructor Summary
ConstructorsConstructorDescriptionMongoSecurityException
(MongoCredential credential, String message) Deprecated.Construct an instanceMongoSecurityException
(MongoCredential credential, String message, Throwable cause) Deprecated.Construct an instance -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The credential being authenticated.Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MongoSecurityException
Deprecated.Construct an instance- Parameters:
credential
- the credentialmessage
- the messagecause
- the cause
-
MongoSecurityException
Deprecated.Construct an instance- Parameters:
credential
- the credentialmessage
- the message
-
-
Method Details
-
getCredential
Deprecated.The credential being authenticated.- Returns:
- the credential
-