com.dropbox.core.BadResponseCodeException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dropbox-core-sdk Show documentation
Show all versions of dropbox-core-sdk Show documentation
Official Java client library for the Dropbox API.
package com.dropbox.core;
/**
* Thrown when the Dropbox server responds with an HTTP status code we didn't expect.
*/
public class BadResponseCodeException extends BadResponseException {
private static final long serialVersionUID = 0L;
private final int statusCode;
public BadResponseCodeException(String requestId, String message, int statusCode) {
super(requestId, message);
this.statusCode = statusCode;
}
public BadResponseCodeException(String requestId, String message, int statusCode, Throwable cause) {
super(requestId, message, cause);
this.statusCode = statusCode;
}
/**
* Returns HTTP status code received from the Dropbox server.
*
* @return HTTP status code returned by Dropbox server
*/
public int getStatusCode() {
return statusCode;
}
}