ROInvalidVariantCodeException
Overview
This exception happens when deserializing a Variant typed value sent by remote party. Every variant value contains a type identifier to specify the type of data that is actually stored inside the Variant value. The exception is thrown when such identifier is invalid or unsupported by RO SDK for Xcode.
Location
- Reference: ROVariant.h
- Namespace: RemObjectsSDK
- Ancestry: NSException | ROException | ROVariantException | ROInvalidVariantCodeException
code assign
The actual Variant type code received
@property (assign) int code
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithCode:
Creates an exception instance and allows to specify the Variant type code received.
+ (ROInvalidVariantCodeException *) exceptionWithCode:(int)aCode
Parameters:
- aCode: The actual Variant type code received
exceptionWithMessage: (declared in ROException)
+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
fromServer assign (declared in ROException)
This flag is used to distinguish server side exceptions from client side ones. Set to YES for server side exceptions.
@property (assign) BOOL fromServer
initWithCode:
- (InstanceType) initWithCode:(int)aCode
Parameters:
- aCode:
initWithMessage: (declared in ROException)
- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
initWithMessage:fromServer: (declared in ROException)
- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage fromServer:(BOOL)aFromServer
Parameters:
- aExceptionMessage:
- aFromServer:
serverStackTrace copy (declared in ROException)
@property (copy) nonnull NSString *serverStackTrace
code assign
The actual Variant type code received
@property (assign) int code
fromServer assign (declared in ROException)
This flag is used to distinguish server side exceptions from client side ones. Set to YES for server side exceptions.
@property (assign) BOOL fromServer
serverStackTrace copy (declared in ROException)
@property (copy) nonnull NSString *serverStackTrace
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithCode:
Creates an exception instance and allows to specify the Variant type code received.
+ (ROInvalidVariantCodeException *) exceptionWithCode:(int)aCode
Parameters:
- aCode: The actual Variant type code received
exceptionWithMessage: (declared in ROException)
+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
initWithCode:
- (InstanceType) initWithCode:(int)aCode
Parameters:
- aCode:
initWithMessage: (declared in ROException)
- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
initWithMessage:fromServer: (declared in ROException)
- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage fromServer:(BOOL)aFromServer
Parameters:
- aExceptionMessage:
- aFromServer: