Class StandardErrorPrint

java.lang.Object
space.arim.dazzleconf.StandardErrorPrint
All Implemented Interfaces:
ErrorPrint

public final class StandardErrorPrint extends Object implements ErrorPrint
Usable implementation of ErrorPrint that formats the error message in a language-independent fashion.

Note this implementation requires at least one error context passed in the list onError(List). If the list is empty, an IllegalArgumentException will be thrown.

  • Constructor Details

    • StandardErrorPrint

      public StandardErrorPrint(@NonNull ErrorPrint.Output output)
      Creates from the given output
      Parameters:
      output - where to send messages
  • Method Details

    • onError

      public void onError(@NonNull List<@NonNull ErrorContext> errorContexts)
      Description copied from interface: ErrorPrint
      Displays the following error contexts in some way, shape, or form
      Specified by:
      onError in interface ErrorPrint
      Parameters:
      errorContexts - the error contexts