Class ChannelOpenException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.sshtools.common.ssh.ChannelOpenException
All Implemented Interfaces:
Serializable

public class ChannelOpenException extends Exception
Exception thrown when a channel cannot be opened, the reason for which should be specified in with any of the constants defined here.
Author:
Lee David Painter
See Also:
  • Field Details

    • ADMINISTRATIVIVELY_PROHIBITED

      public static final int ADMINISTRATIVIVELY_PROHIBITED
      The administrator does not permit this channel to be opened
      See Also:
    • CONNECT_FAILED

      public static final int CONNECT_FAILED
      The connection could not be established
      See Also:
    • UNKNOWN_CHANNEL_TYPE

      public static final int UNKNOWN_CHANNEL_TYPE
      The channel type is unknown
      See Also:
    • RESOURCE_SHORTAGE

      public static final int RESOURCE_SHORTAGE
      There are no more resources available to open the channel
      See Also:
  • Constructor Details

    • ChannelOpenException

      public ChannelOpenException(String msg, int reason)
  • Method Details

    • getReason

      public int getReason()