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
,org.bremersee.exception.HttpResponseHeadersAware
,org.bremersee.exception.HttpStatusAware
,RestApiExceptionAware
public class HttpClientException extends RuntimeException implements org.bremersee.exception.HttpStatusAware, RestApiExceptionAware, org.bremersee.exception.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()
int
status()
-
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()
- Specified by:
getMultiValueHeaders
in interfaceorg.bremersee.exception.HttpResponseHeadersAware
-
status
public int status()
- Specified by:
status
in interfaceorg.bremersee.exception.HttpStatusAware
-
-