Modifier and Type | Class and Description |
---|---|
static class |
RelocationBatchError.Tag
Discriminating tag type for
RelocationBatchError . |
Modifier and Type | Field and Description |
---|---|
static RelocationBatchError |
CANT_COPY_SHARED_FOLDER
Shared folders can't be copied.
|
static RelocationBatchError |
CANT_MOVE_FOLDER_INTO_ITSELF
You cannot move a folder into itself.
|
static RelocationBatchError |
CANT_NEST_SHARED_FOLDER
Your move operation would result in nested shared folders.
|
static RelocationBatchError |
DUPLICATED_OR_NESTED_PATHS
There are duplicated/nested paths among
RelocationArg.getFromPath()
and RelocationArg.getToPath() . |
static RelocationBatchError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static RelocationBatchError |
TOO_MANY_FILES
The operation would involve more than 10,000 files and folders.
|
static RelocationBatchError |
TOO_MANY_WRITE_OPERATIONS
There are too many write operations in user's Dropbox.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static RelocationBatchError |
fromLookup(LookupError value)
Returns an instance of
RelocationBatchError that has its tag set
to RelocationBatchError.Tag.FROM_LOOKUP . |
static RelocationBatchError |
fromWrite(WriteError value)
Returns an instance of
RelocationBatchError that has its tag set
to RelocationBatchError.Tag.FROM_WRITE . |
LookupError |
getFromLookupValue()
This instance must be tagged as
RelocationBatchError.Tag.FROM_LOOKUP . |
WriteError |
getFromWriteValue()
This instance must be tagged as
RelocationBatchError.Tag.FROM_WRITE . |
WriteError |
getToValue()
This instance must be tagged as
RelocationBatchError.Tag.TO . |
int |
hashCode() |
boolean |
isCantCopySharedFolder()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_COPY_SHARED_FOLDER , false otherwise. |
boolean |
isCantMoveFolderIntoItself()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_MOVE_FOLDER_INTO_ITSELF , false otherwise. |
boolean |
isCantNestSharedFolder()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_NEST_SHARED_FOLDER , false otherwise. |
boolean |
isDuplicatedOrNestedPaths()
Returns
true if this instance has the tag RelocationBatchError.Tag.DUPLICATED_OR_NESTED_PATHS , false otherwise. |
boolean |
isFromLookup()
|
boolean |
isFromWrite()
|
boolean |
isOther()
|
boolean |
isTo()
|
boolean |
isTooManyFiles()
|
boolean |
isTooManyWriteOperations()
Returns
true if this instance has the tag RelocationBatchError.Tag.TOO_MANY_WRITE_OPERATIONS , false otherwise. |
RelocationBatchError.Tag |
tag()
Returns the tag for this instance.
|
static RelocationBatchError |
to(WriteError value)
Returns an instance of
RelocationBatchError that has its tag set
to RelocationBatchError.Tag.TO . |
String |
toString() |
String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final RelocationBatchError CANT_COPY_SHARED_FOLDER
public static final RelocationBatchError CANT_NEST_SHARED_FOLDER
public static final RelocationBatchError CANT_MOVE_FOLDER_INTO_ITSELF
public static final RelocationBatchError TOO_MANY_FILES
public static final RelocationBatchError OTHER
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.
public static final RelocationBatchError DUPLICATED_OR_NESTED_PATHS
RelocationArg.getFromPath()
and RelocationArg.getToPath()
.public static final RelocationBatchError TOO_MANY_WRITE_OPERATIONS
public RelocationBatchError.Tag tag()
This class is a tagged union. Tagged unions instances are always
associated to a specific tag. This means only one of the isXyz()
methods will return true
. Callers are recommended to use the tag
value in a switch
statement to properly handle the different
values for this RelocationBatchError
.
public boolean isFromLookup()
true
if this instance is tagged as RelocationBatchError.Tag.FROM_LOOKUP
, false
otherwise.public static RelocationBatchError fromLookup(LookupError value)
RelocationBatchError
that has its tag set
to RelocationBatchError.Tag.FROM_LOOKUP
.
None
value
- value to assign to this instance.RelocationBatchError
with its tag set to
RelocationBatchError.Tag.FROM_LOOKUP
.IllegalArgumentException
- if value
is null
.public LookupError getFromLookupValue()
RelocationBatchError.Tag.FROM_LOOKUP
.LookupError
value associated with this instance if
isFromLookup()
is true
.IllegalStateException
- If isFromLookup()
is false
.public boolean isFromWrite()
true
if this instance is tagged as RelocationBatchError.Tag.FROM_WRITE
, false
otherwise.public static RelocationBatchError fromWrite(WriteError value)
RelocationBatchError
that has its tag set
to RelocationBatchError.Tag.FROM_WRITE
.
None
value
- value to assign to this instance.RelocationBatchError
with its tag set to
RelocationBatchError.Tag.FROM_WRITE
.IllegalArgumentException
- if value
is null
.public WriteError getFromWriteValue()
RelocationBatchError.Tag.FROM_WRITE
.WriteError
value associated with this instance if
isFromWrite()
is true
.IllegalStateException
- If isFromWrite()
is false
.public boolean isTo()
true
if this instance is tagged as RelocationBatchError.Tag.TO
, false
otherwise.public static RelocationBatchError to(WriteError value)
RelocationBatchError
that has its tag set
to RelocationBatchError.Tag.TO
.
None
value
- value to assign to this instance.RelocationBatchError
with its tag set to
RelocationBatchError.Tag.TO
.IllegalArgumentException
- if value
is null
.public WriteError getToValue()
RelocationBatchError.Tag.TO
.WriteError
value associated with this instance if
isTo()
is true
.IllegalStateException
- If isTo()
is false
.public boolean isCantCopySharedFolder()
true
if this instance has the tag RelocationBatchError.Tag.CANT_COPY_SHARED_FOLDER
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.CANT_COPY_SHARED_FOLDER
, false
otherwise.public boolean isCantNestSharedFolder()
true
if this instance has the tag RelocationBatchError.Tag.CANT_NEST_SHARED_FOLDER
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.CANT_NEST_SHARED_FOLDER
, false
otherwise.public boolean isCantMoveFolderIntoItself()
true
if this instance has the tag RelocationBatchError.Tag.CANT_MOVE_FOLDER_INTO_ITSELF
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.CANT_MOVE_FOLDER_INTO_ITSELF
, false
otherwise.public boolean isTooManyFiles()
true
if this instance is tagged as RelocationBatchError.Tag.TOO_MANY_FILES
, false
otherwise.public boolean isOther()
true
if this instance is tagged as RelocationBatchError.Tag.OTHER
,
false
otherwise.public boolean isDuplicatedOrNestedPaths()
true
if this instance has the tag RelocationBatchError.Tag.DUPLICATED_OR_NESTED_PATHS
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.DUPLICATED_OR_NESTED_PATHS
, false
otherwise.public boolean isTooManyWriteOperations()
true
if this instance has the tag RelocationBatchError.Tag.TOO_MANY_WRITE_OPERATIONS
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.TOO_MANY_WRITE_OPERATIONS
, false
otherwise.public String toStringMultiline()
The returned String may contain newlines.