DBFILEREQUESTSCreateFileRequestError

Objective-C

@interface DBFILEREQUESTSCreateFileRequestError
    : NSObject <DBSerializable, NSCopying>

Swift

class DBFILEREQUESTSCreateFileRequestError : NSObject, DBSerializable, NSCopying

The CreateFileRequestError union.

There was an error creating the file request.

This class implements the DBSerializable protocol (serialize and deserialize instance methods), which is required for all Obj-C SDK API route objects.

Instance fields

Constructors

  • Initializes union class with tag state of “disabled_for_team”.

    Description of the “disabled_for_team” tag state: This user’s Dropbox Business team doesn’t allow file requests.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDisabledForTeam;

    Swift

    init(disabledForTeam: ())

    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 “not_found”.

    Description of the “not_found” tag state: This file request ID was not found.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNotFound;

    Swift

    init(notFound: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “not_a_folder”.

    Description of the “not_a_folder” tag state: The specified path is not a folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNotAFolder;

    Swift

    init(notAFolder: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “app_lacks_access”.

    Description of the “app_lacks_access” tag state: This file request is not accessible to this app. Apps with the app folder permission can only access file requests in their app folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithAppLacksAccess;

    Swift

    init(appLacksAccess: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “no_permission”.

    Description of the “no_permission” tag state: This user doesn’t have permission to access or modify this file request.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithNoPermission;

    Swift

    init(noPermission: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “email_unverified”.

    Description of the “email_unverified” tag state: This user’s email address is not verified. File requests are 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 “validation_error”.

    Description of the “validation_error” tag state: There was an error validating the request. For example, the title was invalid, or there were disallowed characters in the destination path.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithValidationError;

    Swift

    init(validationError: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “invalid_location”.

    Description of the “invalid_location” tag state: File requests are not available on the specified folder.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithInvalidLocation;

    Swift

    init(invalidLocation: ())

    Return Value

    An initialized instance.

  • Initializes union class with tag state of “rate_limit”.

    Description of the “rate_limit” tag state: The user has reached the rate limit for creating file requests. The limit is currently 4000 file requests total.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithRateLimit;

    Swift

    init(rateLimit: ())

    Return Value

    An initialized instance.

Tag state methods

  • Retrieves whether the union’s current tag state has value “disabled_for_team”.

    Declaration

    Objective-C

    - (BOOL)isDisabledForTeam;

    Swift

    func isDisabledForTeam() -> Bool

    Return Value

    Whether the union’s current tag state has value “disabled_for_team”.

  • 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 whether the union’s current tag state has value “not_found”.

    Declaration

    Objective-C

    - (BOOL)isNotFound;

    Swift

    func isNotFound() -> Bool

    Return Value

    Whether the union’s current tag state has value “not_found”.

  • Retrieves whether the union’s current tag state has value “not_a_folder”.

    Declaration

    Objective-C

    - (BOOL)isNotAFolder;

    Swift

    func isNotAFolder() -> Bool

    Return Value

    Whether the union’s current tag state has value “not_a_folder”.

  • Retrieves whether the union’s current tag state has value “app_lacks_access”.

    Declaration

    Objective-C

    - (BOOL)isAppLacksAccess;

    Swift

    func isAppLacksAccess() -> Bool

    Return Value

    Whether the union’s current tag state has value “app_lacks_access”.

  • Retrieves whether the union’s current tag state has value “no_permission”.

    Declaration

    Objective-C

    - (BOOL)isNoPermission;

    Swift

    func isNoPermission() -> Bool

    Return Value

    Whether the union’s current tag state has value “no_permission”.

  • Retrieves whether the union’s current tag state has value “email_unverified”.

    Declaration

    Objective-C

    - (BOOL)isEmailUnverified;

    Swift

    func isEmailUnverified() -> Bool

    Return Value

    Whether the union’s current tag state has value “email_unverified”.

  • Retrieves whether the union’s current tag state has value “validation_error”.

    Declaration

    Objective-C

    - (BOOL)isValidationError;

    Swift

    func isValidationError() -> Bool

    Return Value

    Whether the union’s current tag state has value “validation_error”.

  • Retrieves whether the union’s current tag state has value “invalid_location”.

    Declaration

    Objective-C

    - (BOOL)isInvalidLocation;

    Swift

    func isInvalidLocation() -> Bool

    Return Value

    Whether the union’s current tag state has value “invalid_location”.

  • Retrieves whether the union’s current tag state has value “rate_limit”.

    Declaration

    Objective-C

    - (BOOL)isRateLimit;

    Swift

    func isRateLimit() -> Bool

    Return Value

    Whether the union’s current tag state has value “rate_limit”.

  • 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.