public final class RelocationBatchError
extends java.lang.Object
isAbc()
methods will
return true
. You can use tag()
to determine the tag
associated with this instance.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_MOVE_SHARED_FOLDER
Can't move the shared folder to the given destination.
|
static RelocationBatchError |
CANT_NEST_SHARED_FOLDER
Your move operation would result in nested shared folders.
|
static RelocationBatchError |
CANT_TRANSFER_OWNERSHIP
Your move operation would result in an ownership transfer.
|
static RelocationBatchError |
DUPLICATED_OR_NESTED_PATHS
There are duplicated/nested paths among
RelocationArg.getFromPath()
and RelocationArg.getToPath() . |
static RelocationBatchError |
INSUFFICIENT_QUOTA
The current user does not have enough space to move or copy the files.
|
static RelocationBatchError |
INTERNAL_ERROR
Something went wrong with the job on Dropbox's end.
|
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 |
---|---|
static RelocationBatchError |
cantMoveIntoVault(MoveIntoVaultError value)
Returns an instance of
RelocationBatchError that has its tag set
to RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT . |
boolean |
equals(java.lang.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 . |
MoveIntoVaultError |
getCantMoveIntoVaultValue()
Some content cannot be moved into Vault under certain circumstances, see
detailed error.
|
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 |
isCantMoveIntoVault()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT , false otherwise. |
boolean |
isCantMoveSharedFolder()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_MOVE_SHARED_FOLDER , false otherwise. |
boolean |
isCantNestSharedFolder()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_NEST_SHARED_FOLDER , false otherwise. |
boolean |
isCantTransferOwnership()
Returns
true if this instance has the tag RelocationBatchError.Tag.CANT_TRANSFER_OWNERSHIP , 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 |
isInsufficientQuota()
Returns
true if this instance has the tag RelocationBatchError.Tag.INSUFFICIENT_QUOTA , false otherwise. |
boolean |
isInternalError()
|
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 . |
java.lang.String |
toString() |
java.lang.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 DUPLICATED_OR_NESTED_PATHS
RelocationArg.getFromPath()
and RelocationArg.getToPath()
.public static final RelocationBatchError CANT_TRANSFER_OWNERSHIP
RelocationArg.getAllowOwnershipTransfer()
to true.public static final RelocationBatchError INSUFFICIENT_QUOTA
public static final RelocationBatchError INTERNAL_ERROR
public static final RelocationBatchError CANT_MOVE_SHARED_FOLDER
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 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
.java.lang.IllegalArgumentException
- if value
is null
.public LookupError getFromLookupValue()
RelocationBatchError.Tag.FROM_LOOKUP
.LookupError
value associated with this instance if
isFromLookup()
is true
.java.lang.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
.java.lang.IllegalArgumentException
- if value
is null
.public WriteError getFromWriteValue()
RelocationBatchError.Tag.FROM_WRITE
.WriteError
value associated with this instance if
isFromWrite()
is true
.java.lang.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
.java.lang.IllegalArgumentException
- if value
is null
.public WriteError getToValue()
RelocationBatchError.Tag.TO
.WriteError
value associated with this instance if
isTo()
is true
.java.lang.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 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 isCantTransferOwnership()
true
if this instance has the tag RelocationBatchError.Tag.CANT_TRANSFER_OWNERSHIP
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.CANT_TRANSFER_OWNERSHIP
, false
otherwise.public boolean isInsufficientQuota()
true
if this instance has the tag RelocationBatchError.Tag.INSUFFICIENT_QUOTA
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.INSUFFICIENT_QUOTA
, false
otherwise.public boolean isInternalError()
true
if this instance is tagged as RelocationBatchError.Tag.INTERNAL_ERROR
, false
otherwise.public boolean isCantMoveSharedFolder()
true
if this instance has the tag RelocationBatchError.Tag.CANT_MOVE_SHARED_FOLDER
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.CANT_MOVE_SHARED_FOLDER
, false
otherwise.public boolean isCantMoveIntoVault()
true
if this instance has the tag RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT
, false
otherwise.true
if this instance is tagged as RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT
, false
otherwise.public static RelocationBatchError cantMoveIntoVault(MoveIntoVaultError value)
RelocationBatchError
that has its tag set
to RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT
.
Some content cannot be moved into Vault under certain circumstances, see detailed error.
value
- value to assign to this instance.RelocationBatchError
with its tag set to
RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT
.java.lang.IllegalArgumentException
- if value
is null
.public MoveIntoVaultError getCantMoveIntoVaultValue()
This instance must be tagged as RelocationBatchError.Tag.CANT_MOVE_INTO_VAULT
.
MoveIntoVaultError
value associated with this
instance if isCantMoveIntoVault()
is true
.java.lang.IllegalStateException
- If isCantMoveIntoVault()
is false
.public boolean isOther()
true
if this instance is tagged as RelocationBatchError.Tag.OTHER
,
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 int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.