Class ErrorItem.Builder

java.lang.Object
ai.docling.serve.api.convert.response.ErrorItem.Builder
Enclosing class:
ErrorItem

public static class ErrorItem.Builder extends Object
Builder for creating ErrorItem instances. Generated by Lombok's @Builder annotation.

Builder methods:

  • componentType(String) - Set the component type
  • errorMessage(String) - Set the error message
  • moduleName(String) - Set the module name
  • Method Details

    • componentType

      public @NonNull ErrorItem.Builder componentType(String componentType)
      Type of Docling component that encountered the error.
      Parameters:
      componentType - the component type
      Returns:
      this.
    • errorMessage

      public @NonNull ErrorItem.Builder errorMessage(String errorMessage)
      Error message describing what went wrong.
      Parameters:
      errorMessage - the error message
      Returns:
      this.
    • moduleName

      public @NonNull ErrorItem.Builder moduleName(String moduleName)
      Name of the module where the error occurred.
      Parameters:
      moduleName - the module name
      Returns:
      this.
    • build

      public @NonNull ErrorItem build()
    • toString

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