Class ErrorResponse
- java.lang.Object
-
- org.opensearch.client.opensearch._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.
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static JsonpDeserializer<ErrorCause>buildErrorCauseDeserializers()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:status
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ErrorResponse> _DESERIALIZER
Json deserializer forErrorResponse
-
-
Method Detail
-
of
public static ErrorResponse of(java.util.function.Function<ErrorResponse.Builder,ObjectBuilder<ErrorResponse>> fn)
-
error
public final ErrorCause error()
Required - API name:error
-
status
public final int status()
Required - API name:status
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupErrorResponseDeserializer
protected static void setupErrorResponseDeserializer(ObjectDeserializer<ErrorResponse.Builder> op)
-
buildErrorCauseDeserializers
protected static JsonpDeserializer<ErrorCause> buildErrorCauseDeserializers()
-
-