com.android.ddmlib
Enum SyncException.SyncError

java.lang.Object
  extended by java.lang.Enum<SyncException.SyncError>
      extended by com.android.ddmlib.SyncException.SyncError
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SyncException.SyncError>
Enclosing class:
SyncException

public static enum SyncException.SyncError
extends java.lang.Enum<SyncException.SyncError>


Enum Constant Summary
BUFFER_OVERRUN
          receiving too much data from the remove device at once
CANCELED
          canceled transfer
FILE_READ_ERROR
          error while reading local file.
FILE_WRITE_ERROR
          error while writing local file.
LOCAL_IS_DIRECTORY
          attempting to push a directory.
NO_DIR_TARGET
          Result code when attempting to pull multiple into a directory that does not exist.
NO_LOCAL_FILE
          attempting to push a non-existent file.
NO_REMOTE_OBJECT
          unknown remote object during a pull
REMOTE_IS_FILE
          when the target path of a multi file push is a file.
REMOTE_PATH_ENCODING
          wrong encoding on the remote path.
REMOTE_PATH_LENGTH
          remote path that is too long.
TARGET_IS_FILE
          Result code when attempting to pull multiple files into a file
TRANSFER_PROTOCOL_ERROR
          Transfer error
 
Method Summary
 java.lang.String getMessage()
           
static SyncException.SyncError valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SyncException.SyncError[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CANCELED

public static final SyncException.SyncError CANCELED
canceled transfer


TRANSFER_PROTOCOL_ERROR

public static final SyncException.SyncError TRANSFER_PROTOCOL_ERROR
Transfer error


NO_REMOTE_OBJECT

public static final SyncException.SyncError NO_REMOTE_OBJECT
unknown remote object during a pull


TARGET_IS_FILE

public static final SyncException.SyncError TARGET_IS_FILE
Result code when attempting to pull multiple files into a file


NO_DIR_TARGET

public static final SyncException.SyncError NO_DIR_TARGET
Result code when attempting to pull multiple into a directory that does not exist.


REMOTE_PATH_ENCODING

public static final SyncException.SyncError REMOTE_PATH_ENCODING
wrong encoding on the remote path.


REMOTE_PATH_LENGTH

public static final SyncException.SyncError REMOTE_PATH_LENGTH
remote path that is too long.


FILE_READ_ERROR

public static final SyncException.SyncError FILE_READ_ERROR
error while reading local file.


FILE_WRITE_ERROR

public static final SyncException.SyncError FILE_WRITE_ERROR
error while writing local file.


LOCAL_IS_DIRECTORY

public static final SyncException.SyncError LOCAL_IS_DIRECTORY
attempting to push a directory.


NO_LOCAL_FILE

public static final SyncException.SyncError NO_LOCAL_FILE
attempting to push a non-existent file.


REMOTE_IS_FILE

public static final SyncException.SyncError REMOTE_IS_FILE
when the target path of a multi file push is a file.


BUFFER_OVERRUN

public static final SyncException.SyncError BUFFER_OVERRUN
receiving too much data from the remove device at once

Method Detail

values

public static SyncException.SyncError[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SyncException.SyncError c : SyncException.SyncError.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SyncException.SyncError valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getMessage

public java.lang.String getMessage()