Secure iNet Factory

com.jscape.inet.sftp
Class RequestException

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.RequestException
All Implemented Interfaces:
java.io.Serializable

public class RequestException
extends SftpException

The SFTP request error. May be thrown while protocol reqest/response exchange if the returned response is not expected or indicates server error.

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

Constructor Summary
RequestException(SftpPacket request, SftpPacket response)
          Creates a new error instance for the specified request/response.
RequestException(java.lang.String message, SftpPacket request, SftpPacket response)
          Creates a new error with the specified message.
 
Method Summary
 SftpPacket getRequest()
          Obtains request packet.
 SftpPacket getResponse()
          Obtains server response packet.
 
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

RequestException

public RequestException(SftpPacket request,
                        SftpPacket response)
Creates a new error instance for the specified request/response.

Parameters:
request - client request
response - server response

RequestException

public RequestException(java.lang.String message,
                        SftpPacket request,
                        SftpPacket response)
Creates a new error with the specified message.

Parameters:
message - error message
request - client request
response - server response
Method Detail

getRequest

public SftpPacket getRequest()
Obtains request packet.

Returns:
request packet

getResponse

public SftpPacket getResponse()
Obtains server response packet.

Returns:
server response packet

Secure iNet Factory

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