Class ErrorCause

java.lang.Object
co.elastic.clients.elasticsearch._types.ErrorCause
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class ErrorCause extends Object implements 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:
  • Field Details

  • Method Details

    • of

    • metadata

      public final Map<String,JsonData> metadata()
      Additional details about the error
    • type

      @Nullable public final String type()
      The type of error

      API name: type

    • reason

      @Nullable public final String reason()
      A human-readable explanation of the error, in english

      API name: reason

    • stackTrace

      @Nullable public final String stackTrace()
      The server stack trace. Present only if the error_trace=true parameter was sent with the request.

      API name: stack_trace

    • causedBy

      @Nullable public final ErrorCause causedBy()
      API name: caused_by
    • rootCause

      public final List<ErrorCause> rootCause()
      API name: root_cause
    • suppressed

      public final List<ErrorCause> suppressed()
      API name: suppressed
    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupErrorCauseDeserializer

      protected static void setupErrorCauseDeserializer(ObjectDeserializer<ErrorCause.Builder> op)