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

com.files.exceptions.HttpRedirectException Maven / Gradle / Ivy

Go to download

The Files.com Java client library provides convenient access to the Files.com API from JVM based applications.

There is a newer version: 1.4.123
Show newest version
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