Class ErrorResponse
java.lang.Object
co.elastic.clients.elasticsearch._types.ErrorResponse
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ErrorResponse extends java.lang.Object implements JsonpSerializable
The response returned by Elasticsearch when request execution did not
succeed.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ErrorResponse.Builder
Builder forErrorResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ErrorResponse>
_DESERIALIZER
Json deserializer forErrorResponse
-
Method Summary
Modifier and Type Method Description ErrorCause
error()
Required - API name:error
static ErrorResponse
of(java.util.function.Function<ErrorResponse.Builder,ObjectBuilder<ErrorResponse>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupErrorResponseDeserializer(ObjectDeserializer<ErrorResponse.Builder> op)
int
status()
Required - API name:status
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forErrorResponse
-
-
Method Details
-
of
public static ErrorResponse of(java.util.function.Function<ErrorResponse.Builder,ObjectBuilder<ErrorResponse>> fn) -
error
Required - API name:error
-
status
public final int status()Required - API name:status
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupErrorResponseDeserializer
-