public static class BaseCommand.Failure
extends java.lang.Exception
BaseCommand.CommandRunnable.run()
with client message and code.Constructor and Description |
---|
Failure(int exitCode,
java.lang.String msg)
Create a new failure.
|
Failure(int exitCode,
java.lang.String msg,
java.lang.Throwable why)
Create a new failure.
|
public Failure(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 Failure(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.