Serializable
public class MongoSecurityException extends MongoClientException
Constructor | Description |
---|---|
MongoSecurityException(MongoCredential credential,
String message) |
Construct an instance
|
MongoSecurityException(MongoCredential credential,
String message,
Throwable cause) |
Construct an instance
|
Modifier and Type | Method | Description |
---|---|---|
MongoCredential |
getCredential() |
The credential being authenticated.
|
fromThrowable, fromThrowableNonNull, getCode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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()