Interface ErrorReporter


public interface ErrorReporter
A class that provides means for reporting an error to the user.
  • Method Summary

    Modifier and Type Method Description
    default void reportError​(Throwable error)
    Report the specified error to the user.
    default void reportError​(Throwable error, boolean modal, boolean fatal)
    Report the specified error to the user optionally using a modal dialog and marking it as fatal.
    void reportError​(Throwable error, ZonedDateTime atTime, boolean modal, boolean fatal)
    Report the specified error that occurred at the specified time to the user optionally using a modal dialog and marking it as fatal.
  • Method Details

    • reportError

      default void reportError​(@NotNull Throwable error)
      Report the specified error to the user.
      Parameters:
      error - the error.
    • reportError

      default void reportError​(@NotNull Throwable error, boolean modal, boolean fatal)
      Report the specified error to the user optionally using a modal dialog and marking it as fatal.
      Parameters:
      error - the error to report
      modal - true of the report should be modal
      fatal - true if the error was fatal
    • reportError

      void reportError​(@NotNull Throwable error, @NotNull ZonedDateTime atTime, boolean modal, boolean fatal)
      Report the specified error that occurred at the specified time to the user optionally using a modal dialog and marking it as fatal.
      Parameters:
      error - the error
      atTime - the time the error occurred
      modal - true if the report should be modal
      fatal - true if the error was fatal