DBFILESWriteConflictError

Objective-C

@interface DBFILESWriteConflictError : NSObject <DBSerializable, NSCopying>

Swift

class DBFILESWriteConflictError : NSObject, DBSerializable, NSCopying

The WriteConflictError union.

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

    Description of the “file” tag state: There’s a file in the way.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFile;

    Swift

    init(file: ())

    Return Value

    An initialized instance.

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

    Description of the “folder” tag state: There’s a folder in the way.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFolder;

    Swift

    init(folder: ())

    Return Value

    An initialized instance.

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

    Description of the “file_ancestor” tag state: There’s a file at an ancestor path, so we couldn’t create the required parent folders.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFileAncestor;

    Swift

    init(fileAncestor: ())

    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.

Tag state methods

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

    Declaration

    Objective-C

    - (BOOL)isFile;

    Swift

    func isFile() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isFolder;

    Swift

    func isFolder() -> Bool

    Return Value

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

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

    Declaration

    Objective-C

    - (BOOL)isFileAncestor;

    Swift

    func isFileAncestor() -> Bool

    Return Value

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

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