Class ErrorItem.Builder
java.lang.Object
ai.docling.serve.api.convert.response.ErrorItem.Builder
- Enclosing class:
- ErrorItem
Builder for creating
ErrorItem instances.
Generated by Lombok's @Builder annotation.
Builder methods:
componentType(String)- Set the component typeerrorMessage(String)- Set the error messagemoduleName(String)- Set the module name
-
Method Summary
Modifier and TypeMethodDescription@NonNull ErrorItembuild()@NonNull ErrorItem.BuildercomponentType(String componentType) Type of Docling component that encountered the error.@NonNull ErrorItem.BuildererrorMessage(String errorMessage) Error message describing what went wrong.@NonNull ErrorItem.BuildermoduleName(String moduleName) Name of the module where the error occurred.@NonNull StringtoString()
-
Method Details
-
componentType
Type of Docling component that encountered the error.- Parameters:
componentType- the component type- Returns:
this.
-
errorMessage
Error message describing what went wrong.- Parameters:
errorMessage- the error message- Returns:
this.
-
moduleName
Name of the module where the error occurred.- Parameters:
moduleName- the module name- Returns:
this.
-
build
-
toString
-