Class ErrorCause
java.lang.Object
co.elastic.clients.elasticsearch._types.ErrorCause
- All Implemented Interfaces:
JsonpSerializable
Cause and details about a request failure. This class defines the properties
common to all error types. Additional details are also provided, that depend
on the error type.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ErrorCause>Json deserializer forErrorCause -
Method Summary
Modifier and TypeMethodDescriptionfinal ErrorCausecausedBy()API name:caused_bymetadata()Additional details about the errorstatic ErrorCausefinal Stringreason()A human-readable explanation of the error, in englishfinal 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.final List<ErrorCause>API name:suppressedtoString()final Stringtype()The type of error
-
Field Details
-
_DESERIALIZER
Json deserializer forErrorCause
-
-
Method Details
-
of
-
metadata
Additional details about the error -
type
The type of errorAPI name:
type -
reason
A human-readable explanation of the error, in englishAPI name:
reason -
stackTrace
The server stack trace. Present only if theerror_trace=trueparameter was sent with the request.API name:
stack_trace -
causedBy
API name:caused_by -
rootCause
API name:root_cause -
suppressed
API name:suppressed -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupErrorCauseDeserializer
-