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:
java.io.Serializable
@Deprecated public class MongoSecurityException extends MongoClientException
Deprecated.Usage of this API is not supported in Cloud Service.This exception is thrown when there is an error reported by the underlying client authentication mechanism.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description MongoSecurityException(MongoCredential credential, java.lang.String message)Deprecated.Construct an instanceMongoSecurityException(MongoCredential credential, java.lang.String message, java.lang.Throwable cause)Deprecated.Construct an instance
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MongoCredentialgetCredential()Deprecated.The credential being authenticated.-
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
-
-
-
-
Constructor Detail
-
MongoSecurityException
public MongoSecurityException(MongoCredential credential, java.lang.String message, java.lang.Throwable cause)
Deprecated.Construct an instance- Parameters:
credential- the credentialmessage- the messagecause- the cause
-
MongoSecurityException
public MongoSecurityException(MongoCredential credential, java.lang.String message)
Deprecated.Construct an instance- Parameters:
credential- the credentialmessage- the message
-
-
Method Detail
-
getCredential
public MongoCredential getCredential()
Deprecated.The credential being authenticated.- Returns:
- the credential
-
-