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

com.gettyimages.api.HttpClientErrorException Maven / Gradle / Ivy

There is a newer version: 3.1.9
Show newest version
package com.gettyimages.api;

import org.apache.http.StatusLine;

public class HttpClientErrorException extends SdkException {

    private final int statusCode;
    private final String reasonPhrase;
    
    public HttpClientErrorException(final StatusLine statusLine) {
            super("Client Error (" + statusLine.getStatusCode() + "): " + statusLine.getReasonPhrase());
        this.statusCode = statusLine.getStatusCode();
        this.reasonPhrase = statusLine.getReasonPhrase();
    }

    public int getStatusCode() {
        return statusCode;
    }

    public String getReasonPhrase() {
        return reasonPhrase;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy