|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.freeshell.zs.common.TerminatingException
public class TerminatingException
Represent a runtime exception that terminates the program. This exception should be allowed to propagate to the top-level for proper handling.
| Constructor Summary | |
|---|---|
TerminatingException(java.lang.String message)
Constructor. |
|
TerminatingException(java.lang.String message,
java.lang.Throwable cause,
int exitCode)
Constructor. |
|
| Method Summary | |
|---|---|
int |
getExitCode()
Return the exit status code to be reported to the OS. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TerminatingException(java.lang.String message,
java.lang.Throwable cause,
int exitCode)
message - Exception message; saved for later retrieval by the Throwable.getMessage() methodcause - Cause of the exception; saved for later retrieval by the Throwable.getCause() methodexitCode - Exit status code; saved for later retrieval by the TerminatingException.getExitCode()
methodpublic TerminatingException(java.lang.String message)
message - Exception message; saved for later retrieval by the Throwable.getMessage() method| Method Detail |
|---|
public int getExitCode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||