Class ErrorCause
java.lang.Object
org.opensearch.client.opensearch._types.ErrorCause
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ErrorCause.Builder,ErrorCause>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ErrorCause
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ErrorCause.Builder,ErrorCause>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ErrorCause> Json deserializer forErrorCause -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorCause.Builderbuilder()final ErrorCausecausedBy()API name:caused_bybooleaninthashCode()metadata()Any additional information about the error.static ErrorCausefinal Stringreason()A human-readable explanation of the error, in English.final List<ErrorCause> 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 voidfinal StringThe server stack trace, present only if theerror_trace=trueparameter was sent with the request.final List<ErrorCause> API name:suppressedCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringtype()Required - The type of error.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forErrorCause
-
-
Method Details
-
of
-
causedBy
API name:caused_by -
metadata
Any additional information about the error. -
reason
A human-readable explanation of the error, in English.API name:
reason -
rootCause
API name:root_cause -
stackTrace
The server stack trace, present only if theerror_trace=trueparameter was sent with the request.API name:
stack_trace -
suppressed
API name:suppressed -
type
Required - The type of error.API name:
type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ErrorCause.Builder,ErrorCause> - Returns:
- a new builder instance.
-
builder
-
setupErrorCauseDeserializer
-
hashCode
public int hashCode() -
equals
-