public final class ShareFolderError
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 |
ShareFolderError.Tag
Discriminating tag type for
ShareFolderError . |
Modifier and Type | Field and Description |
---|---|
static ShareFolderError |
DISALLOWED_SHARED_LINK_POLICY
The current user's account is not allowed to select the specified
ShareFolderArg.getSharedLinkPolicy() . |
static ShareFolderError |
EMAIL_UNVERIFIED
The current user's e-mail address is unverified.
|
static ShareFolderError |
NO_PERMISSION
The current user does not have permission to perform this action.
|
static ShareFolderError |
OTHER
Catch-all used for unknown tag values returned by the Dropbox servers.
|
static ShareFolderError |
TEAM_POLICY_DISALLOWS_MEMBER_POLICY
Team policy is more restrictive than
ShareFolderArg.getMemberPolicy() . |
Modifier and Type | Method and Description |
---|---|
static ShareFolderError |
badPath(SharePathError value)
Returns an instance of
ShareFolderError that has its tag set to
ShareFolderError.Tag.BAD_PATH . |
boolean |
equals(java.lang.Object obj) |
SharePathError |
getBadPathValue()
ShareFolderArg.getPath() is invalid. |
int |
hashCode() |
boolean |
isBadPath()
|
boolean |
isDisallowedSharedLinkPolicy()
Returns
true if this instance has the tag ShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY , false otherwise. |
boolean |
isEmailUnverified()
|
boolean |
isNoPermission()
|
boolean |
isOther()
|
boolean |
isTeamPolicyDisallowsMemberPolicy()
Returns
true if this instance has the tag ShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY , false otherwise. |
ShareFolderError.Tag |
tag()
Returns the tag for this instance.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
public static final ShareFolderError EMAIL_UNVERIFIED
public static final ShareFolderError TEAM_POLICY_DISALLOWS_MEMBER_POLICY
ShareFolderArg.getMemberPolicy()
.public static final ShareFolderError DISALLOWED_SHARED_LINK_POLICY
ShareFolderArg.getSharedLinkPolicy()
.public static final ShareFolderError 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 ShareFolderError NO_PERMISSION
public ShareFolderError.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 ShareFolderError
.
public boolean isEmailUnverified()
true
if this instance is tagged as ShareFolderError.Tag.EMAIL_UNVERIFIED
, false
otherwise.public boolean isBadPath()
true
if this instance is tagged as ShareFolderError.Tag.BAD_PATH
,
false
otherwise.public static ShareFolderError badPath(SharePathError value)
ShareFolderError
that has its tag set to
ShareFolderError.Tag.BAD_PATH
.
ShareFolderArg.getPath()
is invalid.
value
- value to assign to this instance.ShareFolderError
with its tag set to ShareFolderError.Tag.BAD_PATH
.java.lang.IllegalArgumentException
- if value
is null
.public SharePathError getBadPathValue()
ShareFolderArg.getPath()
is invalid.
This instance must be tagged as ShareFolderError.Tag.BAD_PATH
.
SharePathError
value associated with this instance if
isBadPath()
is true
.java.lang.IllegalStateException
- If isBadPath()
is false
.public boolean isTeamPolicyDisallowsMemberPolicy()
true
if this instance has the tag ShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY
, false
otherwise.true
if this instance is tagged as ShareFolderError.Tag.TEAM_POLICY_DISALLOWS_MEMBER_POLICY
, false
otherwise.public boolean isDisallowedSharedLinkPolicy()
true
if this instance has the tag ShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY
, false
otherwise.true
if this instance is tagged as ShareFolderError.Tag.DISALLOWED_SHARED_LINK_POLICY
, false
otherwise.public boolean isOther()
true
if this instance is tagged as ShareFolderError.Tag.OTHER
,
false
otherwise.public boolean isNoPermission()
true
if this instance is tagged as ShareFolderError.Tag.NO_PERMISSION
, 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.