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:
java.io.Serializable
public class GlobalRequestException extends java.lang.Exception
An exception that can be set on aGlobalRequestFuture
to indicate that the server sent back a failure reply.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
code
private static long
serialVersionUID
-
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.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
code
private final int code
-
-
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
-
-