Class ExitUtil

java.lang.Object
ch.tocco.nice2.util.ExitUtil

public abstract class ExitUtil extends Object
  • Method Details

    • exit

      public static void exit(int exitCode, String message)
      Log message, then exit application with exitCode.
      Parameters:
      exitCode - return value of this application
      message - message logged before exiting
    • exit

      public static void exit(int exitCode, String message, Throwable exception)
      Log message, with exception, then exit application with exitCode.
      Parameters:
      exitCode - return value of this application
      message - message logged before exiting
      exception - exception to append to message