Class ErrorViewCollector


  • public class ErrorViewCollector
    extends java.lang.Object
    Convenience class for adding messages to a ErrorView instance using a fixed category name.
    • Constructor Detail

      • ErrorViewCollector

        public ErrorViewCollector​(@NotNull
                                  @NotNull ErrorView errorView,
                                  @NotNull
                                  @NotNull java.io.File file)
        Creates a new instance.
        Parameters:
        errorView - the error view to add to
        file - the file being read
      • ErrorViewCollector

        public ErrorViewCollector​(@NotNull
                                  @NotNull ErrorView errorView,
                                  @NotNull
                                  @NotNull java.net.URL url)
        Creates a new instance.
        Parameters:
        errorView - the error view to add to
        url - the URL being read
    • Method Detail

      • addWarning

        public void addWarning​(@NotNull
                               @NotNull ErrorViewCategory category)
        Adds a warning message.
        Parameters:
        category - the category
      • addWarning

        public void addWarning​(@NotNull
                               @NotNull ErrorViewCategory category,
                               @NotNull
                               @NotNull java.lang.String message)
        Adds a warning message.
        Parameters:
        category - the category
        message - the message
      • addWarning

        public void addWarning​(@NotNull
                               @NotNull ErrorViewCategory category,
                               int lineNo,
                               @NotNull
                               @NotNull java.lang.String message)
        Adds a warning message.
        Parameters:
        category - the category
        lineNo - the line number
        message - the message
      • addError

        public void addError​(@NotNull
                             @NotNull ErrorViewCategory category)
        Adds an error message.
        Parameters:
        category - the category
      • addError

        public void addError​(@NotNull
                             @NotNull ErrorViewCategory category,
                             @NotNull
                             @NotNull java.lang.String message)
        Adds an error message.
        Parameters:
        category - the category
        message - the message
      • addError

        public void addError​(@NotNull
                             @NotNull ErrorViewCategory category,
                             int lineNo,
                             @NotNull
                             @NotNull java.lang.String message)
        Adds an error message.
        Parameters:
        category - the category
        lineNo - the line number
        message - the message