Package org.bremersee.exception
Class HttpClientException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.bremersee.exception.HttpClientException
-
- All Implemented Interfaces:
Serializable
,HttpResponseHeadersAware
,HttpStatusAware
,RestApiExceptionAware
public class HttpClientException extends RuntimeException implements HttpStatusAware, RestApiExceptionAware, HttpResponseHeadersAware
General http client exception.- Author:
- Christian Bremer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HttpClientException(int status, String message, Map<String,? extends Collection<String>> headers, org.bremersee.exception.model.RestApiException restApiException)
Instantiates a new http client exception.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,? extends Collection<String>>
getMultiValueHeaders()
Gets the response headers as multi value map.int
status()
Gets the HTTP status code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.bremersee.exception.RestApiExceptionAware
getRestApiException
-
-
-
-
Constructor Detail
-
HttpClientException
public HttpClientException(int status, String message, Map<String,? extends Collection<String>> headers, org.bremersee.exception.model.RestApiException restApiException)
Instantiates a new http client exception.- Parameters:
status
- the statusmessage
- the messageheaders
- the headersrestApiException
- the rest api exception
-
-
Method Detail
-
getMultiValueHeaders
public Map<String,? extends Collection<String>> getMultiValueHeaders()
Description copied from interface:HttpResponseHeadersAware
Gets the response headers as multi value map.- Specified by:
getMultiValueHeaders
in interfaceHttpResponseHeadersAware
- Returns:
- the response headers
-
status
public int status()
Description copied from interface:HttpStatusAware
Gets the HTTP status code.- Specified by:
status
in interfaceHttpStatusAware
- Returns:
- the HTTP status code
-
-