public class HttpError
extends java.lang.Exception
Constructor and Description |
---|
HttpError(java.lang.String message,
int statusCode,
int entitySizeInBytes) |
Modifier and Type | Method and Description |
---|---|
static HttpError |
create(int statusCode,
java.lang.String host,
int entitySizeInBytes) |
boolean |
discardHarvestData()
A method to determine if the agent should discard its harvest data when receiving an error response.
|
int |
getEntitySizeInBytes() |
int |
getStatusCode() |
boolean |
isRequestPayloadTooLarge()
A method to determine if the agent's payload was too large.
|
boolean |
isRetryableError()
A method to determine if the agent should retry an endpoint that returns an error response code.
|
public HttpError(java.lang.String message, int statusCode, int entitySizeInBytes)
public int getStatusCode()
public int getEntitySizeInBytes()
public static HttpError create(int statusCode, java.lang.String host, int entitySizeInBytes)
public boolean isRetryableError()
public boolean isRequestPayloadTooLarge()
public boolean discardHarvestData()