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
public class GlobalRequestException extends Exception
An exception that can be set on aGlobalRequestFuture
to indicate that the server sent back a failure reply.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GlobalRequestException(int code)
Creates a newGlobalRequestException
with the given SSH message code.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCode()
Retrieves the SSH message code.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getCode
public int getCode()
Retrieves the SSH message code.- Returns:
- the code, normally
SshConstants.SSH_MSG_UNIMPLEMENTED
orSshConstants.SSH_MSG_REQUEST_FAILURE
-
-