Class ErrorMessageFormatter

Object
com.tailf.conf.ErrorMessageFormatter

public class ErrorMessageFormatter extends Object
  • Constructor Details

    • ErrorMessageFormatter

      public ErrorMessageFormatter()
  • Method Details

    • getDefaultErrorVerbosity

      public static ErrorVerbosity getDefaultErrorVerbosity()
      Get the default verbosity level for reported errors This governs error verbosity for all Formatters which has not specifically set their local verbosity level with setErrorVerbosity(ErrorVerbosity)
      Returns:
      the default ErrorVerbosity
    • setDefaultErrorVerbosity

      public static void setDefaultErrorVerbosity(ErrorVerbosity verbosity)
      Set the default verbosity level for reported errors This governs error verbosity for all Formatters which has not specifically set their local verbosity level with setErrorVerbosity(ErrorVerbosity)
      Parameters:
      verbosity - if null current value is left unchanged
    • getErrorVerbosity

      public ErrorVerbosity getErrorVerbosity()
      Get the local verbosity level for reported errors If this verbosity is null the the default level governs the error verbosity of this Formatter
      Returns:
      the local errorVerbosity
    • setErrorVerbosity

      public void setErrorVerbosity(ErrorVerbosity verbosity)
      set the local verbosity level for reported errors If this verbosity is set to null the the default level governs the error verbosity of this Formatter
      Parameters:
      verbosity -
    • initCauseMessage

      public String initCauseMessage(Throwable e)
      Compose a exception message from the top and initial cause messages.
      Parameters:
      e -
      Returns:
      the resulting exception message