jdash.client.exception.HttpResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdash-client Show documentation
Show all versions of jdash-client Show documentation
The HTTP client used to pull data from Geometry Dash servers
The newest version!
package jdash.client.exception;
import io.netty.handler.codec.http.HttpResponseStatus;
import java.util.Objects;
/**
* Emitted when the Geometry Dash server returns an HTTP error.
*/
public class HttpResponseException extends RuntimeException {
private final HttpResponseStatus responseStatus;
public HttpResponseException(HttpResponseStatus responseStatus) {
super(Objects.requireNonNull(responseStatus).toString());
this.responseStatus = responseStatus;
}
/**
* Gets the HTTP response status.
*
* @return the {@link HttpResponseStatus}
*/
public HttpResponseStatus getResponseStatus() {
return responseStatus;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy