All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.mvc.upload.UploadStopException Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.72
Show newest version
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