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

com.github.paganini2008.devtools.http.HttpStatusException Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
package com.github.paganini2008.devtools.http;

import java.io.IOException;

/**
 * HttpStatusException
 * 
 * @author Fred Feng
 * @version 1.0
 */
public class HttpStatusException extends IOException {

	private static final long serialVersionUID = 2734229897177246457L;
	private int statusCode;
	private String url;

	public HttpStatusException(String message, int statusCode, String url) {
		super(message);
		this.statusCode = statusCode;
		this.url = url;
	}

	public int getStatusCode() {
		return statusCode;
	}

	public String getUrl() {
		return url;
	}

	public String toString() {
		return super.toString() + ". Status=" + statusCode + ", URL=" + url;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy