Package com.dropbox.core.v2.files
Enum LockFileError.Tag
- java.lang.Object
-
- java.lang.Enum<LockFileError.Tag>
-
- com.dropbox.core.v2.files.LockFileError.Tag
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LockFileError.Tag>
- Enclosing class:
- LockFileError
public static enum LockFileError.Tag extends java.lang.Enum<LockFileError.Tag>
Discriminating tag type forLockFileError
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANNOT_BE_LOCKED
Item is a type that cannot be locked.FILE_NOT_SHARED
Requested file is not currently shared.INTERNAL_ERROR
Something went wrong with the job on Dropbox's end.LOCK_CONFLICT
The user action conflicts with an existing lock on the file.NO_WRITE_PERMISSION
The user does not have permissions to change the lock state or access the file.OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.PATH_LOOKUP
Could not find the specified resource.TOO_MANY_FILES
There are too many files in one request.TOO_MANY_WRITE_OPERATIONS
There are too many write operations in user's Dropbox.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LockFileError.Tag
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LockFileError.Tag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PATH_LOOKUP
public static final LockFileError.Tag PATH_LOOKUP
Could not find the specified resource.
-
TOO_MANY_WRITE_OPERATIONS
public static final LockFileError.Tag TOO_MANY_WRITE_OPERATIONS
There are too many write operations in user's Dropbox. Please retry this request.
-
TOO_MANY_FILES
public static final LockFileError.Tag TOO_MANY_FILES
There are too many files in one request. Please retry with fewer files.
-
NO_WRITE_PERMISSION
public static final LockFileError.Tag NO_WRITE_PERMISSION
The user does not have permissions to change the lock state or access the file.
-
CANNOT_BE_LOCKED
public static final LockFileError.Tag CANNOT_BE_LOCKED
Item is a type that cannot be locked.
-
FILE_NOT_SHARED
public static final LockFileError.Tag FILE_NOT_SHARED
Requested file is not currently shared.
-
LOCK_CONFLICT
public static final LockFileError.Tag LOCK_CONFLICT
The user action conflicts with an existing lock on the file.
-
INTERNAL_ERROR
public static final LockFileError.Tag INTERNAL_ERROR
Something went wrong with the job on Dropbox's end. You'll need to verify that the action you were taking succeeded, and if not, try again. This should happen very rarely.
-
OTHER
public static final LockFileError.Tag OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.Receiving a catch-all value typically indicates this SDK version is not up to date. Consider updating your SDK version to handle the new tags.
-
-
Method Detail
-
values
public static LockFileError.Tag[] 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 (LockFileError.Tag c : LockFileError.Tag.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LockFileError.Tag 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 namejava.lang.NullPointerException
- if the argument is null
-
-