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 responseErrorResponsesetError(String error)The error from the responseErrorResponsesetErrors(List<String> errors)The errors from the responseStringtoString()
-
-
-
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
-
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.
-
-