Class SshChannelOpenException

All Implemented Interfaces:
Serializable, ChannelIdentifier

public class SshChannelOpenException extends SshChannelException
Documents failure of a channel to open as expected.
Author:
Apache MINA SSHD Project
See Also:
  • Constructor Details

    • SshChannelOpenException

      public SshChannelOpenException(long channelId, int code, String message)
    • SshChannelOpenException

      public SshChannelOpenException(long channelId, int code, String message, Throwable cause)
  • Method Details

    • getReasonCode

      public int getReasonCode()
      The reason code as specified by RFC 4254.
      • SshConstants.SSH_OPEN_ADMINISTRATIVELY_PROHIBITED
      • SshConstants.SSH_OPEN_CONNECT_FAILED
      • SshConstants.SSH_OPEN_UNKNOWN_CHANNEL_TYPE
      • SshConstants.SSH_OPEN_RESOURCE_SHORTAGE
      Returns:
      reason code; 0 if no standardized reason code is given.