public enum HttpOperationErrorType extends Enum<HttpOperationErrorType>
Enum Constant and Description |
---|
CONNECTION_FAILED
Indicates that connection to target URL failed.
|
NOT_OK_HTTP_STATUS_CODE
Indicates an HTTP status code other than success (200).
|
RESPONSE_BODY_CONVERSION_ERROR
Indicates an error during conversion of the response body:
to
valueType when HttpService.send(HttpRequest, HttpResponseBodyValueType) is used or
to CsvData when HttpService.send(HttpRequest, CsvReadParameters) is used
|
TIMEOUT
Indicates that HTTP request execution failed to complete within the time specified by
HttpRequest.setTimeout(int) . |
Modifier and Type | Method and Description |
---|---|
static HttpOperationErrorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpOperationErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpOperationErrorType NOT_OK_HTTP_STATUS_CODE
public static final HttpOperationErrorType RESPONSE_BODY_CONVERSION_ERROR
valueType
when HttpService.send(HttpRequest, HttpResponseBodyValueType)
is used orCsvData
when HttpService.send(HttpRequest, CsvReadParameters)
is usedpublic static final HttpOperationErrorType TIMEOUT
HttpRequest.setTimeout(int)
.public static final HttpOperationErrorType CONNECTION_FAILED
public static HttpOperationErrorType[] values()
for (HttpOperationErrorType c : HttpOperationErrorType.values()) System.out.println(c);
public static HttpOperationErrorType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © Veeva Systems 2017–2020. All rights reserved.