ROUnableInstantiateObjectException
Overview
This exception happens when deserializing complex types (i.e. arrays and structures) but the library was unable to create an instance of the required class. This can happen when the local service interface code does not match the actual RODL file on the server. You need to generate the proper code with the rodl2objc utility.
Location
- Reference: ROExceptions.h
- Namespace: RemObjectsSDK
- Ancestry: NSException | ROException | ROUnableInstantiateObjectException
className copy
The class name that could not be instantiated
@property (copy) NSString *className
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithClassName:
Creates an exception instance specifying the failed class name.
+ (ROUnableInstantiateObjectException *) exceptionWithClassName:(NSString *)aClassName
Parameters:
- aClassName: The class name that could not be instantiated
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
initWithClassName:
- (InstanceType) initWithClassName:(NSString *)aClassName
Parameters:
- aClassName:
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
className copy
The class name that could not be instantiated
@property (copy) NSString *className
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
exceptionWithClassName:
Creates an exception instance specifying the failed class name.
+ (ROUnableInstantiateObjectException *) exceptionWithClassName:(NSString *)aClassName
Parameters:
- aClassName: The class name that could not be instantiated
exceptionWithMessage: (declared in ROException)
+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
initWithClassName:
- (InstanceType) initWithClassName:(NSString *)aClassName
Parameters:
- aClassName:
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: