Package com.google.gerrit.sshd
Class BaseCommand.UnloggedFailure
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.gerrit.sshd.BaseCommand.Failure
-
- com.google.gerrit.sshd.BaseCommand.UnloggedFailure
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- BaseCommand
public static class BaseCommand.UnloggedFailure extends BaseCommand.Failure
Thrown fromBaseCommand.CommandRunnable.run()
with client message and code.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnloggedFailure(int exitCode, String msg)
Create a new failure.UnloggedFailure(int exitCode, String msg, Throwable why)
Create a new failure.UnloggedFailure(String msg)
Create a new failure.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
UnloggedFailure
public UnloggedFailure(String msg)
Create a new failure.- Parameters:
msg
- message to also send to the client's stderr.
-
UnloggedFailure
public UnloggedFailure(int exitCode, String msg)
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.
-
UnloggedFailure
public UnloggedFailure(int exitCode, String msg, Throwable why)
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.
-
-