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
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<ErrorCause>
Json deserializer forErrorCause
-
Method Summary
Modifier and TypeMethodDescriptionfinal ErrorCause
causedBy()
API name:caused_by
metadata()
Additional details about the errorstatic ErrorCause
final String
reason()
A human-readable explanation of the error, in englishfinal List<ErrorCause>
API name:root_cause
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
The server stack trace.final List<ErrorCause>
API name:suppressed
toString()
final String
type()
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=true
parameter 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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupErrorCauseDeserializer
-