DBSHARINGShareFolderError
Objective-C
@interface DBSHARINGShareFolderError : NSObject <DBSerializable, NSCopying>
Swift
class DBSHARINGShareFolderError : NSObject, DBSerializable, NSCopying
The ShareFolderError union.
This class implements the DBSerializable protocol (serialize and
deserialize instance methods), which is required for all Obj-C SDK API route
objects.
-
Represents the union’s current tag state.
Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGShareFolderErrorTag tag;Swift
var tag: DBSHARINGShareFolderErrorTag { get } -
pathinDBSHARINGShareFolderArgis invalid. - note: Ensure theisBadPathmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGSharePathError *_Nonnull badPath;Swift
var badPath: DBSHARINGSharePathError { get }
-
Initializes union class with tag state of “email_unverified”.
Description of the “email_unverified” tag state: This user’s email address is not verified. This functionality is only available on accounts with a verified email address. Users can verify their email address here https://www.dropbox.com/help/317.
Declaration
Objective-C
- (nonnull instancetype)initWithEmailUnverified;Swift
init(emailUnverified: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “bad_path”.
Description of the “bad_path” tag state:
pathinDBSHARINGShareFolderArgis invalid.Declaration
Objective-C
- (nonnull instancetype)initWithBadPath: (nonnull DBSHARINGSharePathError *)badPath;Swift
init(badPath: DBSHARINGSharePathError)Parameters
badPathpathinDBSHARINGShareFolderArgis invalid.Return Value
An initialized instance.
-
Initializes union class with tag state of “team_policy_disallows_member_policy”.
Description of the “team_policy_disallows_member_policy” tag state: Team policy is more restrictive than
memberPolicyinDBSHARINGShareFolderArg.Declaration
Objective-C
- (nonnull instancetype)initWithTeamPolicyDisallowsMemberPolicy;Swift
init(teamPolicyDisallowsMemberPolicy: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “disallowed_shared_link_policy”.
Description of the “disallowed_shared_link_policy” tag state: The current user’s account is not allowed to select the specified
sharedLinkPolicyinDBSHARINGShareFolderArg.Declaration
Objective-C
- (nonnull instancetype)initWithDisallowedSharedLinkPolicy;Swift
init(disallowedSharedLinkPolicy: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “other”.
Declaration
Objective-C
- (nonnull instancetype)initWithOther;Swift
init(other: ())Return Value
An initialized instance.
-
Initializes union class with tag state of “no_permission”.
Description of the “no_permission” tag state: The current user does not have permission to perform this action.
Declaration
Objective-C
- (nonnull instancetype)initWithNoPermission;Swift
init(noPermission: ())Return Value
An initialized instance.
-
Retrieves whether the union’s current tag state has value “email_unverified”.
Declaration
Objective-C
- (BOOL)isEmailUnverified;Swift
func isEmailUnverified() -> BoolReturn Value
Whether the union’s current tag state has value “email_unverified”.
-
Retrieves whether the union’s current tag state has value “bad_path”.
Note
Call this method and ensure it returns true before accessing the
badPathproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isBadPath;Swift
func isBadPath() -> BoolReturn Value
Whether the union’s current tag state has value “bad_path”.
-
Retrieves whether the union’s current tag state has value “team_policy_disallows_member_policy”.
Declaration
Objective-C
- (BOOL)isTeamPolicyDisallowsMemberPolicy;Swift
func isTeamPolicyDisallowsMemberPolicy() -> BoolReturn Value
Whether the union’s current tag state has value “team_policy_disallows_member_policy”.
-
Retrieves whether the union’s current tag state has value “disallowed_shared_link_policy”.
Declaration
Objective-C
- (BOOL)isDisallowedSharedLinkPolicy;Swift
func isDisallowedSharedLinkPolicy() -> BoolReturn Value
Whether the union’s current tag state has value “disallowed_shared_link_policy”.
-
Retrieves whether the union’s current tag state has value “other”.
Declaration
Objective-C
- (BOOL)isOther;Swift
func isOther() -> BoolReturn Value
Whether the union’s current tag state has value “other”.
-
Retrieves whether the union’s current tag state has value “no_permission”.
Declaration
Objective-C
- (BOOL)isNoPermission;Swift
func isNoPermission() -> BoolReturn Value
Whether the union’s current tag state has value “no_permission”.
-
Retrieves string value of union’s current tag state.
Declaration
Objective-C
- (nonnull NSString *)tagName;Swift
func tagName() -> StringReturn Value
A human-readable string representing the union’s current tag state.
View on GitHub
DBSHARINGShareFolderError Class Reference