Secure iNet Factory

com.jscape.inet.sftp
Class BadVersionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.jscape.inet.sftp.SftpException
                  extended by com.jscape.inet.sftp.BadVersionException
All Implemented Interfaces:
java.io.Serializable

public class BadVersionException
extends SftpException

The SFTP incompatible client/server versions error. May be thrown while SFTP protocol initialization.

Version:
1.0
Author:
Alex Usun
See Also:
Serialized Form

Constructor Summary
BadVersionException(int clientVersion, int serverVersion)
          Creates a new error instance for specified client/server protocol versions.
BadVersionException(java.lang.String message, int clientVersion, int serverVersion)
          Creates a new error instance with specified message.
 
Method Summary
 int getClientVersion()
          Obtains client protocol version.
 int getServerVersion()
          Obtains server protocol version.
 
Methods inherited from class com.jscape.inet.sftp.SftpException
wrap
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BadVersionException

public BadVersionException(int clientVersion,
                           int serverVersion)
Creates a new error instance for specified client/server protocol versions.

Parameters:
clientVersion - client protocol version
serverVersion - server protocol version

BadVersionException

public BadVersionException(java.lang.String message,
                           int clientVersion,
                           int serverVersion)
Creates a new error instance with specified message.

Parameters:
message - error message
clientVersion - client protocol version
serverVersion - server protocol version
Method Detail

getClientVersion

public int getClientVersion()
Obtains client protocol version.

Returns:
client protocol version

getServerVersion

public int getServerVersion()
Obtains server protocol version.

Returns:
server protocol version

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved