DBSHARINGJobError

@interface 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.

  • Initializes union class with tag state of unshare_folder_error.

    Description of the unshare_folder_error tag state: Error occurred while performing unshareFolder action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithUnshareFolderError:
        (nonnull DBSHARINGUnshareFolderError *)unshareFolderError;

    Swift

    init(unshareFolderError: DBSHARINGUnshareFolderError)

    Parameters

    unshareFolderError

    Error occurred while performing unshareFolder action.

    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 removeFolderMember action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRemoveFolderMemberError:
        (nonnull DBSHARINGRemoveFolderMemberError *)removeFolderMemberError;

    Swift

    init(removeFolderMemberError: DBSHARINGRemoveFolderMemberError)

    Parameters

    removeFolderMemberError

    Error occurred while performing removeFolderMember action.

    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 relinquishFolderMembership action.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRelinquishFolderMembershipError:
        (nonnull DBSHARINGRelinquishFolderMembershipError *)
            relinquishFolderMembershipError;

    Swift

    init(relinquishFolderMembershipError: DBSHARINGRelinquishFolderMembershipError)

    Parameters

    relinquishFolderMembershipError

    Error occurred while performing relinquishFolderMembership action.

    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 unshareFolderError property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isUnshareFolderError;

    Swift

    func isUnshareFolderError() -> Bool

    Return 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 removeFolderMemberError property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isRemoveFolderMemberError;

    Swift

    func isRemoveFolderMemberError() -> Bool

    Return 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 relinquishFolderMembershipError property, otherwise a runtime exception will be thrown.

    Declaration

    Objective-C

    - (BOOL)isRelinquishFolderMembershipError;

    Swift

    func isRelinquishFolderMembershipError() -> Bool

    Return 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() -> Bool

    Return 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() -> String

    Return Value

    A human-readable string representing the union’s current tag state.