com.github.matheusesoft.alm.api.utils.ResponseException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alm-rest-api Show documentation
Show all versions of alm-rest-api Show documentation
A simple Java API client to connect to HP ALM using REST service
The newest version!
package com.github.matheusesoft.alm.api.utils;
import javax.ws.rs.core.Response;
public class ResponseException extends Exception
{
private static final long serialVersionUID = 1L;
private final Response response;
public ResponseException(Response response, String uri)
{
super(String.format("Invalid HTTP response code %s; %s; %s", response.getStatus(), uri, response.getStatusInfo()));
this.response = response;
}
public Response response()
{
return response;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy