Package com.veeva.vault.sdk.api.http
Interface HttpOperationError
public interface HttpOperationError
Represents an HTTP operation error.
-
Method Summary
Modifier and TypeMethodDescriptionType of error during an HTTP operation execution.Result of HTTP operation execution when there is an error.Returns a human-readable error message.
-
Method Details
-
getHttpOperationErrorType
HttpOperationErrorType getHttpOperationErrorType()Type of error during an HTTP operation execution.- Returns:
- http operation error type
-
getMessage
String getMessage()Returns a human-readable error message.An error message of this form should not be used to make programmatic decisions.
- Returns:
- a non-null, human-readable error message
-
getHttpResponse
HttpResponse<String> getHttpResponse()Result of HTTP operation execution when there is an error.For
HttpOperationErrorType.TIMEOUTorHttpOperationErrorType.CONNECTION_FAILED, this returns null.- Returns:
- HTTP response on error, or
null for
HttpOperationErrorType.TIMEOUTorHttpOperationErrorType.CONNECTION_FAILED
-