DBSHARINGJobError
Objective-C
@interface DBSHARINGJobError : NSObject <DBSerializable, NSCopying>
                Swift
class DBSHARINGJobError : NSObject, DBSerializable, NSCopying
                The JobError union.
Error occurred while performing an asynchronous job from unshareFolder or
removeFolderMember.
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) DBSHARINGJobErrorTag tag;Swift
var tag: DBSHARINGJobErrorTag { get } - 
                  
                  
Error occurred while performing
unshareFolderaction. - note: Ensure theisUnshareFolderErrormethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGUnshareFolderError *_Nonnull unshareFolderError;Swift
var unshareFolderError: DBSHARINGUnshareFolderError { get } - 
                  
                  
Error occurred while performing
removeFolderMemberaction. - note: Ensure theisRemoveFolderMemberErrormethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGRemoveFolderMemberError *_Nonnull removeFolderMemberError;Swift
var removeFolderMemberError: DBSHARINGRemoveFolderMemberError { get } - 
                  
                  
Error occurred while performing
relinquishFolderMembershipaction. @note Ensure theisRelinquishFolderMembershipErrormethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBSHARINGRelinquishFolderMembershipError *_Nonnull relinquishFolderMembershipError;Swift
var relinquishFolderMembershipError: DBSHARINGRelinquishFolderMembershipError { get } 
- 
                  
                  
Initializes union class with tag state of “unshare_folder_error”.
Description of the “unshare_folder_error” tag state: Error occurred while performing
unshareFolderaction.Declaration
Objective-C
- (nonnull instancetype)initWithUnshareFolderError: (nonnull DBSHARINGUnshareFolderError *)unshareFolderError;Swift
init(unshareFolderError: DBSHARINGUnshareFolderError)Parameters
unshareFolderErrorError occurred while performing
unshareFolderaction.Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “remove_folder_member_error”.
Description of the “remove_folder_member_error” tag state: Error occurred while performing
removeFolderMemberaction.Declaration
Objective-C
- (nonnull instancetype)initWithRemoveFolderMemberError: (nonnull DBSHARINGRemoveFolderMemberError *)removeFolderMemberError;Swift
init(removeFolderMemberError: DBSHARINGRemoveFolderMemberError)Parameters
removeFolderMemberErrorError occurred while performing
removeFolderMemberaction.Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “relinquish_folder_membership_error”.
Description of the “relinquish_folder_membership_error” tag state: Error occurred while performing
relinquishFolderMembershipaction.Declaration
Objective-C
- (nonnull instancetype)initWithRelinquishFolderMembershipError: (nonnull DBSHARINGRelinquishFolderMembershipError *) relinquishFolderMembershipError;Swift
init(relinquishFolderMembershipError: DBSHARINGRelinquishFolderMembershipError)Parameters
relinquishFolderMembershipErrorError occurred while performing
relinquishFolderMembershipaction.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.
 
- 
                  
                  
Retrieves whether the union’s current tag state has value “unshare_folder_error”.
Note
Call this method and ensure it returns true before accessing the
unshareFolderErrorproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isUnshareFolderError;Swift
func isUnshareFolderError() -> BoolReturn Value
Whether the union’s current tag state has value “unshare_folder_error”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “remove_folder_member_error”.
Note
Call this method and ensure it returns true before accessing the
removeFolderMemberErrorproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isRemoveFolderMemberError;Swift
func isRemoveFolderMemberError() -> BoolReturn Value
Whether the union’s current tag state has value “remove_folder_member_error”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “relinquish_folder_membership_error”.
Note
Call this method and ensure it returns true before accessing the
relinquishFolderMembershipErrorproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isRelinquishFolderMembershipError;Swift
func isRelinquishFolderMembershipError() -> BoolReturn Value
Whether the union’s current tag state has value “relinquish_folder_membership_error”.
 - 
                  
                  
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 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
        DBSHARINGJobError Class Reference