public class MongoSecurityException extends MongoClientException
| Constructor and Description |
|---|
MongoSecurityException(MongoCredential credential,
java.lang.String message)
Construct an instance
|
MongoSecurityException(MongoCredential credential,
java.lang.String message,
java.lang.Throwable cause)
Construct an instance
|
| Modifier and Type | Method and Description |
|---|---|
MongoCredential |
getCredential()
The credential being authenticated.
|
fromThrowable, getCodepublic MongoSecurityException(MongoCredential credential, java.lang.String message, java.lang.Throwable cause)
credential - the credentialmessage - the messagecause - the causepublic MongoSecurityException(MongoCredential credential, java.lang.String message)
credential - the credentialmessage - the messagepublic MongoCredential getCredential()