org.springframework.data.mongodb

Class CannotGetMongoDbConnectionException

    • Constructor Detail

      • CannotGetMongoDbConnectionException

        public CannotGetMongoDbConnectionException(String msg,
                                                   Throwable cause)
      • CannotGetMongoDbConnectionException

        public CannotGetMongoDbConnectionException(String msg)
    • Method Detail

      • getCredentials

        public UserCredentials getCredentials()
        Returns the UserCredentials that were used when trying to connect to the MongoDB instance.
        Returns:
      • getDatabase

        @Nullable
        public String getDatabase()
        Returns the name of the database trying to be accessed.
        Returns: