io.github.albertus82.net.httpserver.HttpException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jface-utils Show documentation
Show all versions of jface-utils Show documentation
Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.
package io.github.albertus82.net.httpserver;
public class HttpException extends RuntimeException {
private static final long serialVersionUID = -7213287704920911183L;
private final int statusCode;
public HttpException(final int statusCode) {
this.statusCode = statusCode;
}
public HttpException(final int statusCode, final String message) {
super(message);
this.statusCode = statusCode;
}
public HttpException(final int statusCode, final Throwable cause) {
super(cause);
this.statusCode = statusCode;
}
public HttpException(final int statusCode, final String message, final Throwable cause) {
super(message, cause);
this.statusCode = statusCode;
}
public int getStatusCode() {
return statusCode;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy