@Override protected CentralDogmaException newStorageNotFoundException(String name) { return new ProjectNotFoundException(name); } }
@Override protected CentralDogmaException newStorageNotFoundException(String name) { return new ProjectNotFoundException(name); } }
@Override protected CentralDogmaException newStorageNotFoundException(String name) { return new ProjectNotFoundException(name); } }
/** * Opens an existing project. */ DefaultProject(File rootDir, Executor repositoryWorker, @Nullable RepositoryCache cache) { requireNonNull(rootDir, "rootDir"); requireNonNull(repositoryWorker, "repositoryWorker"); if (!rootDir.exists()) { throw new ProjectNotFoundException(rootDir.toString()); } name = rootDir.getName(); repos = newRepoManager(rootDir, repositoryWorker, cache); boolean success = false; try { createReservedRepos(System.currentTimeMillis()); success = true; } finally { if (!success) { repos.close(() -> new CentralDogmaException("failed to initialize internal repositories")); } } }
/** * Opens an existing project. */ DefaultProject(File rootDir, Executor repositoryWorker, @Nullable RepositoryCache cache) { requireNonNull(rootDir, "rootDir"); requireNonNull(repositoryWorker, "repositoryWorker"); if (!rootDir.exists()) { throw new ProjectNotFoundException(rootDir.toString()); } name = rootDir.getName(); repos = newRepoManager(rootDir, repositoryWorker, cache); boolean success = false; try { createReservedRepos(System.currentTimeMillis()); success = true; } finally { if (!success) { repos.close(() -> new CentralDogmaException("failed to initialize internal repositories")); } } }
/** * Opens an existing project. */ DefaultProject(File rootDir, Executor repositoryWorker, @Nullable RepositoryCache cache) { requireNonNull(rootDir, "rootDir"); requireNonNull(repositoryWorker, "repositoryWorker"); if (!rootDir.exists()) { throw new ProjectNotFoundException(rootDir.toString()); } name = rootDir.getName(); repos = newRepoManager(rootDir, repositoryWorker, cache); boolean success = false; try { createReservedRepos(System.currentTimeMillis()); success = true; } finally { if (!success) { repos.close(() -> new CentralDogmaException("failed to initialize internal repositories")); } } }
break; case PROJECT_NOT_FOUND: convertedCause = new ProjectNotFoundException(message, false); break; case PROJECT_EXISTS:
break; case PROJECT_NOT_FOUND: convertedCause = new ProjectNotFoundException(message, false); break; case PROJECT_EXISTS:
break; case PROJECT_NOT_FOUND: convertedCause = new ProjectNotFoundException(message, false); break; case PROJECT_EXISTS: