Interface ExitStatus
-
- All Known Implementing Classes:
AbstractExitStatus,MessageExitStatus,NonMessageExitStatus
public interface ExitStatus
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidgenerateMessage(boolean showStackTrace)Process the exit status.ExitCodegetExitCode()Get the exit code information associated with this exit status.ThrowablegetThrowable()ExitStatuswithThrowable(Throwable throwable)Associate a throwable with the exit status.
-
-
-
Method Detail
-
getExitCode
@NonNull ExitCode getExitCode()
Get the exit code information associated with this exit status.- Returns:
- the exit code information
-
getThrowable
@Nullable Throwable getThrowable()
-
generateMessage
void generateMessage(boolean showStackTrace)
Process the exit status.- Parameters:
showStackTrace- include the stack trace for the throwable, if associated- See Also:
withThrowable(Throwable)
-
withThrowable
@NonNull ExitStatus withThrowable(@NonNull Throwable throwable)
Associate a throwable with the exit status.- Parameters:
throwable- the throwable- Returns:
- this exit status
-
-