com.files.exceptions.HttpRedirectException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of files-sdk Show documentation
Show all versions of files-sdk Show documentation
The Files.com Java client library provides convenient access to the Files.com API from JVM based applications.
package com.files.exceptions;
public class HttpRedirectException extends Exception {
private static final long serialVersionUID = -7454978594211599593L;
private final int code;
private final String message;
private final String redirectLocation;
public HttpRedirectException(int code, String redirectLocation) {
this.code = code;
this.redirectLocation = redirectLocation;
this.message = "";
}
public HttpRedirectException(int code, String redirectLocation, String message) {
this.code = code;
this.redirectLocation = redirectLocation;
this.message = message;
}
public int getCode() {
return code;
}
@Override
public String getMessage() {
return message;
}
public String getRedirectLocation() {
return redirectLocation;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy