DBFILEPROPERTIESTemplateError
Objective-C
@interface DBFILEPROPERTIESTemplateError : NSObject <DBSerializable, NSCopying>
                Swift
class DBFILEPROPERTIESTemplateError : NSObject, DBSerializable, NSCopying
                The TemplateError union.
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) DBFILEPROPERTIESTemplateErrorTag tag;Swift
var tag: DBFILEPROPERTIESTemplateErrorTag { get } - 
                  
                  
Template does not exist for the given identifier. - note: Ensure the
isTemplateNotFoundmethod returns true before accessing, otherwise a runtime exception will be raised.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull templateNotFound;Swift
var templateNotFound: String { get } 
- 
                  
                  
Initializes union class with tag state of “template_not_found”.
Description of the “template_not_found” tag state: Template does not exist for the given identifier.
Declaration
Objective-C
- (nonnull instancetype)initWithTemplateNotFound: (nonnull NSString *)templateNotFound;Swift
init(templateNotFound: String)Parameters
templateNotFoundTemplate does not exist for the given identifier.
Return Value
An initialized instance.
 - 
                  
                  
Initializes union class with tag state of “restricted_content”.
Description of the “restricted_content” tag state: You do not have permission to modify this template.
Declaration
Objective-C
- (nonnull instancetype)initWithRestrictedContent;Swift
init(restrictedContent: ())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 “template_not_found”.
Note
Call this method and ensure it returns true before accessing the
templateNotFoundproperty, otherwise a runtime exception will be thrown.Declaration
Objective-C
- (BOOL)isTemplateNotFound;Swift
func isTemplateNotFound() -> BoolReturn Value
Whether the union’s current tag state has value “template_not_found”.
 - 
                  
                  
Retrieves whether the union’s current tag state has value “restricted_content”.
Declaration
Objective-C
- (BOOL)isRestrictedContent;Swift
func isRestrictedContent() -> BoolReturn Value
Whether the union’s current tag state has value “restricted_content”.
 - 
                  
                  
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
        DBFILEPROPERTIESTemplateError Class Reference