Class ValidationErrorDetail

java.lang.Object
ai.docling.serve.api.validation.ValidationErrorDetail

public class ValidationErrorDetail extends Object
Represents detailed information about a validation error. This class provides structured data associated with a validation error, including the locations of the error, an error message, the type of validation error, and the input causing the error.
  • Method Details

    • builder

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

      public @NonNull ValidationErrorDetail.Builder toBuilder()
    • getLocations

      public List<Object> getLocations()
      Represents the specific locations associated with a validation error.
      Returns:
      the specific locations associated with a validation error
    • getMessage

      public @Nullable String getMessage()
      Represents an optional validation error message.
      Returns:
      the optional validation error message
    • getType

      public @Nullable String getType()
      Represents the type of validation error.
      Returns:
      the type of validation error
    • getInput

      public @Nullable String getInput()
      Represents the input causing the validation error.
      Returns:
      the input causing the validation error
    • getContext

      @NonNull public @NonNull ValidationErrorContext getContext()
      Represents the context information associated with a validation error.
      Returns:
      the context information associated with a validation error
    • toString

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