Class ErrorItem

java.lang.Object
ai.docling.serve.api.convert.response.ErrorItem

public class ErrorItem extends Object
Represents an individual error produced during document conversion.

Serialization uses JsonInclude.Include.NON_EMPTY, so nulls and empty strings are omitted from JSON output.

  • Method Details

    • builder

      public static @NonNull ErrorItem.Builder builder()
    • toBuilder

      public @NonNull ErrorItem.Builder toBuilder()
    • getComponentType

      public String getComponentType()
      Type of Docling component that encountered the error.
      Returns:
      the component type
    • getErrorMessage

      public String getErrorMessage()
      Error message describing what went wrong.
      Returns:
      the error message
    • getModuleName

      public String getModuleName()
      Name of the module where the error occurred.
      Returns:
      the module name
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object