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

io.github.albertus82.net.httpserver.HttpException Maven / Gradle / Ivy

Go to download

Java SWT/JFace Utility Library including a Preferences Framework, Lightweight HTTP Server and macOS support.

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