Class AppSearchErrorResponseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- co.elasticsearch.enterprisesearch.client.model.AppSearchErrorResponseException
-
- All Implemented Interfaces:
Serializable
public class AppSearchErrorResponseException extends RuntimeException
Represents an error extracting the response document from the AppSearch Server- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AppSearchErrorResponseException(ErrorResponse response)Create an exception with the given error responseAppSearchErrorResponseException(ErrorResponse response, Integer responseStatus)Create an exception with the given error response and status code
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorResponsegetErrorResponse()The ErrorResponse to returnIntegergetResponseStatus()The HTTP Status code to return-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AppSearchErrorResponseException
public AppSearchErrorResponseException(ErrorResponse response)
Create an exception with the given error response- Parameters:
response- The response to return to the caller
-
AppSearchErrorResponseException
public AppSearchErrorResponseException(ErrorResponse response, Integer responseStatus)
Create an exception with the given error response and status code- Parameters:
response- The response to return to the callerresponseStatus- The HTTP response status to return
-
-
Method Detail
-
getErrorResponse
public ErrorResponse getErrorResponse()
The ErrorResponse to return- Returns:
- The error response
-
getResponseStatus
public Integer getResponseStatus()
The HTTP Status code to return- Returns:
- the status code
-
-