com.wix.restaurants.jsonclient.JsonClientException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wix-restaurants-jsonclient Show documentation
Show all versions of wix-restaurants-jsonclient Show documentation
Wix Restaurants JSON-over-HTTP client
The newest version!
package com.wix.restaurants.jsonclient;
import java.io.IOException;
/** An exception thrown by a RESTful HTTP server, with an optional returned value. */
public class JsonClientException extends IOException {
private static final long serialVersionUID = 1L;
private final int httpErrorCode;
private final String response;
public JsonClientException(int httpErrorCode, String response) {
this.httpErrorCode = httpErrorCode;
this.response = response;
}
public int getHttpErrorCode() {
return httpErrorCode;
}
public String getResponse() {
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy