DBTEAMBaseTeamFolderError
Objective-C
@interface DBTEAMBaseTeamFolderError : NSObject <DBSerializable, NSCopying>
Swift
class DBTEAMBaseTeamFolderError : NSObject, DBSerializable, NSCopying
The BaseTeamFolderError
union.
Base error that all errors for existing team folders should extend.
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) DBTEAMBaseTeamFolderErrorTag tag;
Swift
var tag: DBTEAMBaseTeamFolderErrorTag { get }
-
(no description). - note: Ensure the
isAccessError
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamFolderAccessError *_Nonnull accessError;
Swift
var accessError: DBTEAMTeamFolderAccessError { get }
-
(no description). - note: Ensure the
isStatusError
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamFolderInvalidStatusError *_Nonnull statusError;
Swift
var statusError: DBTEAMTeamFolderInvalidStatusError { get }
-
(no description). - note: Ensure the
isTeamSharedDropboxError
method returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, readonly) DBTEAMTeamFolderTeamSharedDropboxError *_Nonnull teamSharedDropboxError;
Swift
var teamSharedDropboxError: DBTEAMTeamFolderTeamSharedDropboxError { get }
-
Initializes union class with tag state of “access_error”.
Declaration
Objective-C
- (nonnull instancetype)initWithAccessError: (nonnull DBTEAMTeamFolderAccessError *)accessError;
Swift
init(accessError: DBTEAMTeamFolderAccessError)
Parameters
accessError
(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “status_error”.
Declaration
Objective-C
- (nonnull instancetype)initWithStatusError: (nonnull DBTEAMTeamFolderInvalidStatusError *)statusError;
Swift
init(statusError: DBTEAMTeamFolderInvalidStatusError)
Parameters
statusError
(no description).
Return Value
An initialized instance.
-
Initializes union class with tag state of “team_shared_dropbox_error”.
Declaration
Objective-C
- (nonnull instancetype)initWithTeamSharedDropboxError: (nonnull DBTEAMTeamFolderTeamSharedDropboxError *)teamSharedDropboxError;
Swift
init(teamSharedDropboxError: DBTEAMTeamFolderTeamSharedDropboxError)
Parameters
teamSharedDropboxError
(no description).
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 “access_error”.
Note
Call this method and ensure it returns true before accessing the
accessError
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isAccessError;
Swift
func isAccessError() -> Bool
Return Value
Whether the union’s current tag state has value “access_error”.
-
Retrieves whether the union’s current tag state has value “status_error”.
Note
Call this method and ensure it returns true before accessing the
statusError
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isStatusError;
Swift
func isStatusError() -> Bool
Return Value
Whether the union’s current tag state has value “status_error”.
-
Retrieves whether the union’s current tag state has value “team_shared_dropbox_error”.
Note
Call this method and ensure it returns true before accessing the
teamSharedDropboxError
property, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isTeamSharedDropboxError;
Swift
func isTeamSharedDropboxError() -> Bool
Return Value
Whether the union’s current tag state has value “team_shared_dropbox_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.