Interface InteractiveErrorFactory

  • All Known Implementing Classes:
    DefaultInteractiveErrorFactory

    public interface InteractiveErrorFactory
    A factory for interactive errors.
    Author:
    harald
    • Method Detail

      • createInteractiveError

        InteractiveError createInteractiveError​(java.util.TreeSet<org.tentackle.validate.ValidationMapper> mappers,
                                                org.tentackle.bind.Binder binder,
                                                org.tentackle.validate.ValidationResult validationResult)
        Creates an interactive error from a validation result.
        Parameters:
        mappers - optional mappers to map the validation path to a binding path
        binder - the binder
        validationResult - the validation result
        Returns:
        the interactive error
      • createInteractiveError

        InteractiveError createInteractiveError​(boolean warning,
                                                java.lang.String text,
                                                java.lang.String errorCode,
                                                org.tentackle.validate.ValidationResult validationResult,
                                                org.tentackle.fx.FxControl control)
        Creates an interactive error explicitly.
        Parameters:
        warning - true if just a warning, false if error
        text - the error text
        errorCode - the optional error code
        validationResult - the validation result
        control - the optional UI component related to the error, null if none
        Returns:
        the error