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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionintstatus()The exit code to be returned when the process exits.Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
ExitRequestpublic ExitRequest()
- 
ExitRequestpublic ExitRequest(int code) 
 
- 
- 
Method Details- 
statuspublic int status()The exit code to be returned when the process exits.
 
-