ROUnknownClassException

Overview

This exception is thrown when ROTypeManager is requested to instantiate an unknown class. This can happen when the reference to unknown class is received from the server as a part of remote request result and usually indicates that the current service interface code generated from RODL does not match the remote server RODL file. You need to regenerate the interface code properly.

Location


 

className  copy

The name of the class that was not recognized as known.

@property (copy) NSString *className

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithClassName:

Creates an exception instance passing the unknown class name as a parameter.

+ (ROUnknownClassException *) exceptionWithClassName:(NSString *)aClassName

Parameters:

  • aClassName: The name of the class that was not recognized as known

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 name of the class that was not recognized as known.

@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 passing the unknown class name as a parameter.

+ (ROUnknownClassException *) exceptionWithClassName:(NSString *)aClassName

Parameters:

  • aClassName: The name of the class that was not recognized as known

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: