org.fuin.kickstart4j
Class ErrorDialog

java.lang.Object
  extended by org.fuin.kickstart4j.ErrorDialog
All Implemented Interfaces:
java.lang.Runnable

public final class ErrorDialog
extends java.lang.Object
implements java.lang.Runnable

Shows an error message and terminates the program via System.exit(1).


Method Summary
 void run()
          
static void showAndExit(java.io.ByteArrayOutputStream errStream, org.apache.commons.exec.ExecuteException executeException, int exitCode)
          Show an error message dialog using stream or exception.
static void showAndExit(java.lang.String message, int exitCode)
          Show an error message dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

run

public void run()

Specified by:
run in interface java.lang.Runnable

showAndExit

public static void showAndExit(java.io.ByteArrayOutputStream errStream,
                               org.apache.commons.exec.ExecuteException executeException,
                               int exitCode)
Show an error message dialog using stream or exception.

Parameters:
errStream - Error stream filled by Executor.
executeException - Exception from onProcessFailed(..) method.
exitCode - Code for System.exit(..).

showAndExit

public static void showAndExit(java.lang.String message,
                               int exitCode)
Show an error message dialog.

Parameters:
message - Error message.
exitCode - Code for System.exit(..).


Copyright © 2010 Future Invent Informationsmanagement GmbH. All Rights Reserved.