Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
VUtils – Release 1
Interface org.violetlib.util.SimpleReporter
Inherited members: ShowHide
Deprecated: ShowHide
org.violetlib.util

Interface SimpleReporter

  • All Superinterfaces:
    ErrorReporter, MessageReporter
    All Known Implementing Classes:
    NullReporter
    public interface SimpleReporter extends ErrorReporter, MessageReporter
    A simple interface for reporting errors and information.
    • Static Methods 
      Modifier and Type Static Method and Description
      Ordinary member indicator sink Reveal DetailHide Detail
      static SimpleReporter sink()
      Return an error reporter that discards all messages.
      static SimpleReporter sink()
      Return an error reporter that discards all messages.
      Specified by:
      sink in interface ErrorReporter
      Specified by:
      sink in interface MessageReporter
      Inherited member indicator string Reveal DetailHide Detail
      static StringMessageReporter string()
      Return a message reporter that collects messages in a String.
      static StringMessageReporter string()
      Description copied from interface: MessageReporter
      Return a message reporter that collects messages in a String. Messages are separated by newlines. Use the messages method to obtain the available messages.
    • Methods 
      Modifier and Type Method and Description
      Inherited member indicator error Reveal DetailHide Detail
      abstract void error(String message)
      Report an error.
      void error(String message)
      Description copied from interface: ErrorReporter
      Report an error.
      Parameters:
      message - The error message.
      Inherited member indicator formattedError Reveal DetailHide Detail
      void formattedError(String message, Object... args)
      Report an error using a constructed message.
      void formattedError(String message, Object... args)
      Description copied from interface: ErrorReporter
      Report an error using a constructed message.

      The standard format specifiers are %q, to include quoted text, %s, to include literal text, and %%, to include a percent sign.

      Parameters:
      message - The basic error message, which may include format specifiers.
      args - Arguments to include in the message, based on the format specifiers.
      Ordinary member indicator formattedInfo Reveal DetailHide Detail
      void formattedInfo(String message, Object... args)
      Report information using a constructed message.
      void formattedInfo(String message, Object... args)
      Report information using a constructed message.

      The standard format specifiers are %q, to include quoted text, %s, to include literal text, and %%, to include a percent sign.

      Parameters:
      message - The basic message, which may include format specifiers.
      args - Arguments to include in the message, based on the format specifiers.
      Inherited member indicator formattedWarning Reveal DetailHide Detail
      void formattedWarning(String message, Object... args)
      Issue a warning using a constructed message.
      void formattedWarning(String message, Object... args)
      Description copied from interface: ErrorReporter
      Issue a warning using a constructed message.

      The standard format specifiers are %q, to include quoted text, %s, to include literal text, and %%, to include a percent sign.

      Parameters:
      message - The basic error message, which may include format specifiers.
      args - Arguments to include in the message, based on the format specifiers.
      Inherited member indicator info Reveal DetailHide Detail
      abstract void info(String message)
      Report information.
      void info(String message)
      Description copied from interface: MessageReporter
      Report information.
      Parameters:
      message - The message.
      Inherited member indicator warning Reveal DetailHide Detail
      void warning(String message)
      Issue a warning.
      void warning(String message)
      Description copied from interface: ErrorReporter
      Issue a warning.
      Parameters:
      message - The warning message.