Class ErrorResponse
- java.lang.Object
-
- co.elasticsearch.enterprisesearch.client.model.response.ErrorResponse
-
- All Implemented Interfaces:
Serializable
public class ErrorResponse extends Object implements Serializable
Represents an error response- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ErrorResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetError()The error from the responseList<String>getErrors()The errors from the responseStringgetMessage()The error messageBooleangetOk()Whether the request is okErrorResponsesetError(String error)The error from the responseErrorResponsesetErrors(List<String> errors)The errors from the responseErrorResponsesetMessage(String message)The error messageErrorResponsesetOk(Boolean ok)Whether the request is okStringtoString()
-
-
-
Method Detail
-
getErrors
public List<String> getErrors()
The errors from the response- Returns:
- The errors from the response
-
getError
public String getError()
The error from the response- Returns:
- The error from the response
-
getOk
public Boolean getOk()
Whether the request is ok- Returns:
- The status
-
getMessage
public String getMessage()
The error message- Returns:
- the message
-
setErrors
public ErrorResponse setErrors(List<String> errors)
The errors from the response- Parameters:
errors- The errors from the response- Returns:
this.
-
setError
public ErrorResponse setError(String error)
The error from the response- Parameters:
error- The error with the response- Returns:
this.
-
setOk
public ErrorResponse setOk(Boolean ok)
Whether the request is ok- Parameters:
ok- The status of the request- Returns:
this.
-
setMessage
public ErrorResponse setMessage(String message)
The error message- Parameters:
message- The error message- Returns:
this.
-
-