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 classErrorResponse.BuilderBuilder forErrorResponse. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ErrorResponse>_DESERIALIZERJson deserializer forErrorResponse -
Method Summary
Modifier and Type Method Description ErrorCauseerror()Required - API name:errorstatic ErrorResponseof(java.util.function.Function<ErrorResponse.Builder,ObjectBuilder<ErrorResponse>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupErrorResponseDeserializer(ObjectDeserializer<ErrorResponse.Builder> op)intstatus()Required - API name:statusjava.lang.StringtoString()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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupErrorResponseDeserializer
-