Class ExitException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.sentrysoftware.jawk.ExitException
All Implemented Interfaces:
Serializable

public class ExitException extends Exception
With this Exception, any part of the code may request a System.exit(code) call with a specific code.
Author:
Danny Daglas
See Also:
  • Field Details

    • EXIT_CODE_OK

      public static final int EXIT_CODE_OK
      Constant EXIT_CODE_OK=0
      See Also:
  • Constructor Details

    • ExitException

      public ExitException()
      Request exit with the EXIT_CODE_OK.
    • ExitException

      public ExitException(int code)

      Constructor for ExitException.

      Parameters:
      code - a int
    • ExitException

      public ExitException(String message)

      Constructor for ExitException.

      Parameters:
      message - a String object
    • ExitException

      public ExitException(int code, String message)

      Constructor for ExitException.

      Parameters:
      code - a int
      message - a String object
    • ExitException

      public ExitException(int code, Throwable cause)

      Constructor for ExitException.

      Parameters:
      code - a int
      cause - a Throwable object
    • ExitException

      public ExitException(int code, String message, Throwable cause)

      Constructor for ExitException.

      Parameters:
      code - a int
      message - a String object
      cause - a Throwable object
  • Method Details

    • getCode

      public int getCode()
      Returns the code to be passed to the System.exit(code) call.
      Returns:
      a int