Package com.google.gerrit.sshd
Class BaseCommand.Failure
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.google.gerrit.sshd.BaseCommand.Failure
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaseCommand.UnloggedFailure
- Enclosing class:
- BaseCommand
Thrown from
BaseCommand.CommandRunnable.run()
with client message and code.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Failure
Create a new failure.- Parameters:
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.
-
Failure
Create a new failure.- Parameters:
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.
-