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, getRootCause
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public 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–2015 Pivotal Software, Inc.. All rights reserved.