Interface ExitStatus
- All Known Implementing Classes:
AbstractExitStatus,MessageExitStatus,NonMessageExitStatus
public interface ExitStatus
Implementations provide details around the result of processing a set of
command line arguments.
-
Method Summary
Modifier and TypeMethodDescriptionvoidgenerateMessage(boolean showStackTrace) Process the exit status.Get the exit code information associated with this exit status.Get the associated message, ornullif there is no message.Get a throwable that is associated with this exit status.withThrowable(Throwable throwable) Associate a throwable with the exit status.
-
Method Details
-
getExitCode
Get the exit code information associated with this exit status.- Returns:
- the exit code information
-
getThrowable
Get a throwable that is associated with this exit status.- Returns:
- the throwable or
nullif no throwable is associated
-
generateMessage
Process the exit status.- Parameters:
showStackTrace- include the stack trace for the throwable, if associated- See Also:
-
getMessage
Get the associated message, ornullif there is no message.- Returns:
- the message or
null
-
withThrowable
Associate a throwable with the exit status.- Parameters:
throwable- the throwable- Returns:
- this exit status
-