Class MessageExitStatus
java.lang.Object
gov.nist.secauto.metaschema.cli.processor.AbstractExitStatus
gov.nist.secauto.metaschema.cli.processor.MessageExitStatus
- All Implemented Interfaces:
ExitStatus
-
Constructor Summary
ConstructorDescriptionMessageExitStatus
(ExitCode code, Object... messageArguments) Construct a newExitStatus
based on an array of message arguments. -
Method Summary
Methods inherited from class gov.nist.secauto.metaschema.cli.processor.AbstractExitStatus
generateMessage, getExitCode, getThrowable, withThrowable
-
Constructor Details
-
MessageExitStatus
Construct a newExitStatus
based on an array of message arguments.- Parameters:
code
- the exit code to use.messageArguments
- the arguments that can be passed to a formatted string to generate the message
-
-
Method Details
-
getMessage
Description copied from class:AbstractExitStatus
Get the associated message.- Specified by:
getMessage
in classAbstractExitStatus
- Returns:
- the message or
null
-