SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class ExitCodes

java.lang.Object
  extended by org.smartfrog.sfcore.common.ExitCodes

public final class ExitCodes
extends java.lang.Object

Exit error codes.


Field Summary
static int EXIT_CODE_SUCCESS
          value of the error code returned during a failed exit when general error 0
static int EXIT_ERROR_CODE_BAD_ARGS
          value of the error code returned during a failed exit when a bad argument is used 69
static int EXIT_ERROR_CODE_CRTL_ALT_DEL
          value of the error code returned during a failed exit when Control_ALT_Del is pressed 130
static int EXIT_ERROR_CODE_GENERAL
          value of the error code returned during a failed exit when general error 1
 
Method Summary
static void exit(int code)
          Exits from the system.
static void exitWithError()
          Exits from the system.
static void exitWithError(int exitCode)
          Exits from the system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXIT_CODE_SUCCESS

public static final int EXIT_CODE_SUCCESS
value of the error code returned during a failed exit when general error 0

See Also:
Constant Field Values

EXIT_ERROR_CODE_GENERAL

public static final int EXIT_ERROR_CODE_GENERAL
value of the error code returned during a failed exit when general error 1

See Also:
Constant Field Values

EXIT_ERROR_CODE_BAD_ARGS

public static final int EXIT_ERROR_CODE_BAD_ARGS
value of the error code returned during a failed exit when a bad argument is used 69

See Also:
Constant Field Values

EXIT_ERROR_CODE_CRTL_ALT_DEL

public static final int EXIT_ERROR_CODE_CRTL_ALT_DEL
value of the error code returned during a failed exit when Control_ALT_Del is pressed 130

See Also:
Constant Field Values
Method Detail

exitWithError

public static void exitWithError()
Exits from the system.


exitWithError

public static void exitWithError(int exitCode)
Exits from the system.

Parameters:
exitCode - int

exit

public static void exit(int code)
Exits from the system. This is the only place in the framework where System.exit() should be used. That way a subjclass can change exit behaviour (within limits)

Parameters:
code - int

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP