org.apache.sshd.server.channel
Class OpenChannelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.sshd.server.channel.OpenChannelException
All Implemented Interfaces:
Serializable

public class OpenChannelException
extends Exception

Documents failure of a channel to open as expected.

Author:
Apache MINA SSHD Project
See Also:
Serialized Form

Constructor Summary
OpenChannelException(int code, String message)
           
OpenChannelException(int code, String message, Throwable cause)
           
 
Method Summary
 int getReasonCode()
          The reason code as specified by RFC 4254.
 
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
 

Constructor Detail

OpenChannelException

public OpenChannelException(int code,
                            String message)

OpenChannelException

public OpenChannelException(int code,
                            String message,
                            Throwable cause)
Method Detail

getReasonCode

public int getReasonCode()
The reason code as specified by RFC 4254.

Returns:
reason code; 0 if no standardized reason code is given.


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.