Package org.apache.sshd.common.global
Class GlobalRequestException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.sshd.common.global.GlobalRequestException
- All Implemented Interfaces:
Serializable
An exception that can be set on a
GlobalRequestFuture
to indicate that the
server sent back a failure reply.- See Also:
-
Constructor Summary
ConstructorDescriptionGlobalRequestException
(int code) Creates a newGlobalRequestException
with the given SSH message code. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GlobalRequestException
public GlobalRequestException(int code) Creates a newGlobalRequestException
with the given SSH message code.- Parameters:
code
- SSH message code to set; normallySshConstants.SSH_MSG_UNIMPLEMENTED
orSshConstants.SSH_MSG_REQUEST_FAILURE
-
-
Method Details
-
getCode
public int getCode()Retrieves the SSH message code.- Returns:
- the code, normally
SshConstants.SSH_MSG_UNIMPLEMENTED
orSshConstants.SSH_MSG_REQUEST_FAILURE
-