Package net.shibboleth.tool.xmlsectool
Class Terminator
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- net.shibboleth.tool.xmlsectool.Terminator
-
- All Implemented Interfaces:
Serializable
public class Terminator extends RuntimeException
An unchecked exception that will result in the termination of the command-line application. Any required error logging should be performed before throwing.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private intexitCodeExit code to be delivered to the calling shell.private static longserialVersionUIDSerial version UID.
-
Constructor Summary
Constructors Constructor Description Terminator(ReturnCode code)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetExitCode()Get the exit code to be delivered to the calling shell.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Serial version UID.- See Also:
- Constant Field Values
-
exitCode
private final int exitCode
Exit code to be delivered to the calling shell.
-
-
Constructor Detail
-
Terminator
public Terminator(ReturnCode code)
Constructor.- Parameters:
code- exit code to be delivered to the calling shell.
-
-