
net.anumbrella.seaweedfs.exception.SeaweedfsFileDeleteException Maven / Gradle / Ivy
package net.anumbrella.seaweedfs.exception;
import java.io.IOException;
import java.util.LinkedHashMap;
import java.util.Map;
public class SeaweedfsFileDeleteException extends IOException{
private Map exceptionMap = new LinkedHashMap();
public SeaweedfsFileDeleteException(String fileId, IOException exception) {
super();
putExceptionInMap(fileId, exception);
}
@Override
public String getMessage() {
return String.valueOf(exceptionMap);
}
@Override
public String getLocalizedMessage() {
return String.valueOf(exceptionMap);
}
public int putExceptionInMap(String fileId, IOException exception) {
exceptionMap.put(fileId, exception);
return exceptionMap.size();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy