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 a GlobalRequestFuture to indicate that the server sent back a failure reply.
See Also:
  • Constructor Details

    • GlobalRequestException

      public GlobalRequestException(int code)
      Creates a new GlobalRequestException with the given SSH message code.
      Parameters:
      code - SSH message code to set; normally SshConstants.SSH_MSG_UNIMPLEMENTED or SshConstants.SSH_MSG_REQUEST_FAILURE
  • Method Details

    • getCode

      public int getCode()
      Retrieves the SSH message code.
      Returns:
      the code, normally SshConstants.SSH_MSG_UNIMPLEMENTED or SshConstants.SSH_MSG_REQUEST_FAILURE