public static class BaseCommand.Failure extends Exception
BaseCommand.CommandRunnable.run()
with client message and code.Constructor and Description |
---|
BaseCommand.Failure(int exitCode,
String msg)
Create a new failure.
|
BaseCommand.Failure(int exitCode,
String msg,
Throwable why)
Create a new failure.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BaseCommand.Failure(int exitCode, 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 BaseCommand.Failure(int exitCode, String msg, 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.