com.maverick.ssh
Class ChannelOpenException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.maverick.ssh.ChannelOpenException
All Implemented Interfaces:
java.io.Serializable

public class ChannelOpenException
extends java.lang.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:
Serialized Form

Field Summary
static int ADMINISTRATIVIVELY_PROHIBITED
          The administrator does not permit this channel to be opened
static int CONNECT_FAILED
          The connection could not be established
static int RESOURCE_SHORTAGE
          There are no more resources available to open the channel
static int UNKNOWN_CHANNEL_TYPE
          The channel type is unknown
 
Constructor Summary
ChannelOpenException(java.lang.String msg, int reason)
           
 
Method Summary
 int getReason()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADMINISTRATIVIVELY_PROHIBITED

public static final int ADMINISTRATIVIVELY_PROHIBITED
The administrator does not permit this channel to be opened

See Also:
Constant Field Values

CONNECT_FAILED

public static final int CONNECT_FAILED
The connection could not be established

See Also:
Constant Field Values

UNKNOWN_CHANNEL_TYPE

public static final int UNKNOWN_CHANNEL_TYPE
The channel type is unknown

See Also:
Constant Field Values

RESOURCE_SHORTAGE

public static final int RESOURCE_SHORTAGE
There are no more resources available to open the channel

See Also:
Constant Field Values
Constructor Detail

ChannelOpenException

public ChannelOpenException(java.lang.String msg,
                            int reason)
Method Detail

getReason

public int getReason()


Copyright © 2003 3SP LTD. All Rights Reserved.