
be.bagofwords.http.DownloadResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bow-utils Show documentation
Show all versions of bow-utils Show documentation
Utility classes that are used in the count-db project and other bow-* projects
The newest version!
package be.bagofwords.http;
import be.bagofwords.util.StringUtils;
/**
* Created by Koen Deschacht ([email protected]) on 06/10/14.
*/
public class DownloadResult {
private boolean success;
private String errorMessage;
public DownloadResult(boolean success, String errorMessage) {
if (!success && StringUtils.isEmpty(errorMessage)) {
throw new RuntimeException("An unsuccessful download should always have an error message.");
}
this.errorMessage = errorMessage;
this.success = success;
}
public boolean isSuccess() {
return success;
}
public String getErrorMessage() {
return errorMessage;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy