Package org.metricshub.jawk
Class ExitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.metricshub.jawk.ExitException
- All Implemented Interfaces:
Serializable
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRequest exit with theEXIT_CODE_OK.ExitException(int code) Constructor for ExitException.ExitException(int code, String message) Constructor for ExitException.ExitException(int code, String message, Throwable cause) Constructor for ExitException.ExitException(int code, Throwable cause) Constructor for ExitException.ExitException(String message) Constructor for ExitException. -
Method Summary
Modifier and TypeMethodDescriptionintgetCode()Returns the code to be passed to theSystem.exit(code)call.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
EXIT_CODE_OK
public static final int EXIT_CODE_OKConstantEXIT_CODE_OK=0- See Also:
-
-
Constructor Details
-
ExitException
public ExitException()Request exit with theEXIT_CODE_OK. -
ExitException
public ExitException(int code) Constructor for ExitException.
- Parameters:
code- a int
-
ExitException
Constructor for ExitException.
- Parameters:
message- aStringobject
-
ExitException
Constructor for ExitException.
- Parameters:
code- a intmessage- aStringobject
-
ExitException
Constructor for ExitException.
- Parameters:
code- a intcause- aThrowableobject
-
ExitException
Constructor for ExitException.
-
-
Method Details
-
getCode
public int getCode()Returns the code to be passed to theSystem.exit(code)call.- Returns:
- a int
-