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

com.braintreepayments.http.exceptions.HttpException Maven / Gradle / Ivy

There is a newer version: 1.3.1
Show newest version
package com.braintreepayments.http.exceptions;

import java.io.IOException;

import com.braintreepayments.http.Headers;

public class HttpException extends IOException {

	private Headers headers;
	private int statusCode;

	public HttpException(String message, int statusCode, Headers headers) {
		super(message);
		this.statusCode = statusCode;
		this.headers = headers;
	}

	public Headers headers() {
		if (headers == null) {
			return new Headers();
		}
		return headers;
	}

	public int statusCode() {
		return statusCode;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy