org.nutz.mvc.upload.UploadStopException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz Show documentation
Show all versions of nutz Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.mvc.upload;
public class UploadStopException extends RuntimeException {
private static final long serialVersionUID = -987980575457030395L;
private UploadInfo info;
public UploadStopException(UploadInfo info) {
super(String.format("UploadStop: %d/%d", info.current, info.sum));
this.info = info.clone();
info.sum = -2;
info.current = -2;
}
public UploadInfo getInfo() {
return info;
}
public void setInfo(UploadInfo info) {
this.info = info;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy