Smack

org.jivesoftware.smackx.filetransfer
Class FileTransfer.Error

java.lang.Object
  extended by org.jivesoftware.smackx.filetransfer.FileTransfer.Error
Enclosing class:
FileTransfer

public static class FileTransfer.Error
extends Object


Field Summary
static FileTransfer.Error BAD_FILE
          The provided file to transfer does not exist or could not be read.
static FileTransfer.Error CONNECTION
          An error occured over the socket connected to send the file.
static FileTransfer.Error NO_RESPONSE
          The remote user did not respond or the connection timed out.
static FileTransfer.Error NONE
          No error
static FileTransfer.Error NOT_ACCEPTABLE
          The peer did not find any of the provided stream mechanisms acceptable.
protected static FileTransfer.Error STREAM
          An error occured while sending or recieving the file
 
Method Summary
 String getMessage()
          Returns a String representation of this error.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NONE

public static final FileTransfer.Error NONE
No error


NOT_ACCEPTABLE

public static final FileTransfer.Error NOT_ACCEPTABLE
The peer did not find any of the provided stream mechanisms acceptable.


BAD_FILE

public static final FileTransfer.Error BAD_FILE
The provided file to transfer does not exist or could not be read.


NO_RESPONSE

public static final FileTransfer.Error NO_RESPONSE
The remote user did not respond or the connection timed out.


CONNECTION

public static final FileTransfer.Error CONNECTION
An error occured over the socket connected to send the file.


STREAM

protected static final FileTransfer.Error STREAM
An error occured while sending or recieving the file

Method Detail

getMessage

public String getMessage()
Returns a String representation of this error.

Returns:
Returns a String representation of this error.

toString

public String toString()
Overrides:
toString in class Object

Smack

Copyright © 2003 Jive Software.