Package org.springframework.shell
Class ExitRequest
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.shell.ExitRequest
- All Implemented Interfaces:
Serializable
This exception, when thrown and caught, will ask the shell to gracefully shutdown.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
status()
The exit code to be returned when the process exits.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExitRequest
public ExitRequest() -
ExitRequest
public ExitRequest(int code)
-
-
Method Details
-
status
public int status()The exit code to be returned when the process exits.
-