Interface InteractiveErrorFactory

All Known Implementing Classes:
DefaultInteractiveErrorFactory

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

    • getInstance

      static InteractiveErrorFactory getInstance()
      The singleton.
      Returns:
      the singleton
    • createInteractiveError

      InteractiveError createInteractiveError(NavigableSet<ValidationMapper> mappers, Binder binder, 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, String text, String errorCode, ValidationResult validationResult, 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