Class 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 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 caller
        responseStatus - 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