public class CannotGetMongoDbConnectionException extends DataAccessResourceFailureException
| Constructor and Description |
|---|
CannotGetMongoDbConnectionException(String msg) |
CannotGetMongoDbConnectionException(String msg,
String database,
UserCredentials credentials) |
CannotGetMongoDbConnectionException(String msg,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
UserCredentials |
getCredentials()
Returns the
UserCredentials that were used when trying to connect to the MongoDB instance. |
String |
getDatabase()
Returns the name of the database trying to be accessed.
|
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CannotGetMongoDbConnectionException(String msg, Throwable cause)
public CannotGetMongoDbConnectionException(String msg)
public CannotGetMongoDbConnectionException(String msg, String database, UserCredentials credentials)
public UserCredentials getCredentials()
UserCredentials that were used when trying to connect to the MongoDB instance.public String getDatabase()
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.