Package ch.aaap.harvestclient.exception
Class HarvestHttpException
Object
Throwable
Exception
RuntimeException
ch.aaap.harvestclient.exception.HarvestRuntimeException
ch.aaap.harvestclient.exception.HarvestHttpException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ForbiddenException
,InvalidAuthorizationException
,NotFoundException
,RateLimitedException
,RequestProcessingException
,ServerErrorException
- See Also:
-
Constructor Summary
ConstructorDescriptionHarvestHttpException
(okhttp3.ResponseBody responseBody, int httpCode) HarvestHttpException
(okhttp3.ResponseBody responseBody, int httpCode, String message) -
Method Summary
Modifier and TypeMethodDescriptionint
okhttp3.ResponseBody
static String
initMessage
(okhttp3.ResponseBody responseBody) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HarvestHttpException
public HarvestHttpException(okhttp3.ResponseBody responseBody, int httpCode) -
HarvestHttpException
-
-
Method Details
-
getResponseBody
public okhttp3.ResponseBody getResponseBody() -
getHttpCode
public int getHttpCode() -
initMessage
-