Class ErrorCause
- java.lang.Object
-
- org.opensearch.client.opensearch._types.ErrorCause
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class ErrorCause extends java.lang.Object implements PlainJsonSerializable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classErrorCause.BuilderBuilder forErrorCause.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ErrorCause>_DESERIALIZERJson deserializer forErrorCause
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorCausecausedBy()API name:caused_bybooleanequals(java.lang.Object o)inthashCode()java.util.Map<java.lang.String,JsonData>metadata()Any additional information about the error.static ErrorCauseof(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)java.lang.Stringreason()A human-readable explanation of the error, in English.java.util.List<ErrorCause>rootCause()API name:root_causevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupErrorCauseDeserializer(ObjectDeserializer<ErrorCause.Builder> op)java.lang.StringstackTrace()The server stack trace, present only if theerror_trace=trueparameter was sent with the request.java.util.List<ErrorCause>suppressed()API name:suppressedjava.lang.Stringtype()Required - The type of error.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<ErrorCause> _DESERIALIZER
Json deserializer forErrorCause
-
-
Method Detail
-
of
public static ErrorCause of(java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
-
causedBy
@Nullable public final ErrorCause causedBy()
API name:caused_by
-
reason
@Nullable public final java.lang.String reason()
A human-readable explanation of the error, in English.API name:
reason
-
rootCause
@Nonnull public final java.util.List<ErrorCause> rootCause()
API name:root_cause
-
stackTrace
@Nullable public final java.lang.String stackTrace()
The server stack trace, present only if theerror_trace=trueparameter was sent with the request.API name:
stack_trace
-
suppressed
@Nonnull public final java.util.List<ErrorCause> suppressed()
API name:suppressed
-
type
@Nonnull public final java.lang.String type()
Required - The type of error.API name:
type
-
metadata
@Nonnull public final java.util.Map<java.lang.String,JsonData> metadata()
Any additional information about the error.
-
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)
-
setupErrorCauseDeserializer
protected static void setupErrorCauseDeserializer(ObjectDeserializer<ErrorCause.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-