Top Description Fields Constructors Methods
org.apache.sshd.common.global

public Class GlobalRequestException

extends Exception
Class Inheritance
Imports
org.apache.sshd.common.SshConstants

An exception that can be set on a org.apache.sshd.common.future.GlobalRequestFuture to indicate that the server sent back a failure reply.

Field Summary

Modifier and TypeField and Description
private final int
private static final long

Constructor Summary

AccessConstructor and Description
public
GlobalRequestException(int code)

Creates a new GlobalRequestException with the given SSH message code.

Method Summary

Modifier and TypeMethod and Description
public int
getCode()

Retrieves the SSH message code.

Field Detail

codeback to summary
private final int code
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

GlobalRequestExceptionback to summary
public GlobalRequestException(int code)

Creates a new GlobalRequestException with the given SSH message code.

Parameters
code:int

SSH message code to set; normally SshConstants#SSH_MSG_UNIMPLEMENTED or SshConstants#SSH_MSG_REQUEST_FAILURE

Method Detail

getCodeback to summary
public int getCode()

Retrieves the SSH message code.

Returns:int

the code, normally SshConstants#SSH_MSG_UNIMPLEMENTED or SshConstants#SSH_MSG_REQUEST_FAILURE