001package co.codewizards.cloudstore.core.repo.local;
002
003import co.codewizards.cloudstore.core.oio.File;
004
005public class RepositoryCorruptException extends LocalRepoManagerException {
006
007        private static final long serialVersionUID = 1L;
008
009        private File localRoot;
010
011        public RepositoryCorruptException(File localRoot, String message) {
012                super(String.format("%s Repository: %s", message, localRoot));
013                this.localRoot = localRoot;
014        }
015
016        public RepositoryCorruptException(File localRoot, Throwable cause) {
017                super(String.format("%s Repository: %s", cause.getMessage(), localRoot), cause);
018                this.localRoot = localRoot;
019        }
020
021        public RepositoryCorruptException(File localRoot, String message, Throwable cause) {
022                super(String.format("%s Repository: %s", message, localRoot), cause);
023                this.localRoot = localRoot;
024        }
025
026        public File getLocalRoot() {
027                return localRoot;
028        }
029}