public static class BaseCommand.UnloggedFailure extends BaseCommand.Failure
BaseCommand.CommandRunnable.run()
with client message and code.Constructor and Description |
---|
UnloggedFailure(int exitCode,
java.lang.String msg)
Create a new failure.
|
UnloggedFailure(int exitCode,
java.lang.String msg,
java.lang.Throwable why)
Create a new failure.
|
UnloggedFailure(java.lang.String msg)
Create a new failure.
|
public UnloggedFailure(java.lang.String msg)
msg
- message to also send to the client's stderr.public UnloggedFailure(int exitCode, java.lang.String msg)
exitCode
- exit code to return the client, which indicates the failure status of this
command. Should be between 1 and 255, inclusive.msg
- message to also send to the client's stderr.public UnloggedFailure(int exitCode, java.lang.String msg, java.lang.Throwable why)
exitCode
- exit code to return the client, which indicates the failure status of this
command. Should be between 1 and 255, inclusive.msg
- message to also send to the client's stderr.why
- stack trace to include in the server's log, but is not sent to the client's
stderr.