Package org.elasticsearch.test.rest.yaml
Class ClientYamlTestResponseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.elasticsearch.test.rest.yaml.ClientYamlTestResponseException
- All Implemented Interfaces:
Serializable
Exception obtained from a REST call in case the response code indicated an error. Eagerly reads the response body into a string
for later optional parsing. Supports parsing the response body when needed and returning specific values extracted from it.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExposes the originaResponseException
.Exposes the obtained response bodyMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClientYamlTestResponseException
- Throws:
IOException
-
-
Method Details
-
getRestTestResponse
Exposes the obtained response body -
getResponseException
Exposes the originaResponseException
. Note that the entity will always be null as it gets eagerly consumed and exposed throughgetRestTestResponse()
.
-