RODispatchErrorException

Overview

This exception is thrown by client channels in case of error dispatching message to the server. This is not a business logic or server side error and usually caused by communication failures or client misconfiguration.

Location


 

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithInnerError:

Creates an exception object with the default error message and assigns the internal error object to it.

+ (RODispatchErrorException *) exceptionWithInnerError:(NSError *)aError

Parameters:

  • aError: The error object returned by the underlying communication subsystem

exceptionWithMessage:    (declared in ROException)

+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage:

exceptionWithMessage:innerError:

Creates an exception object with a custom error message and assigns the internal error object to it.

+ (RODispatchErrorException *) exceptionWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError

Parameters:

  • aExceptionMessage: Text message describing the error condition
  • aError: The error object returned by the underlying communication subsystem

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

initWithInnerError:

- (InstanceType) initWithInnerError:(NSError *)aError

Parameters:

  • aError:

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:

initWithMessage:innerError:

- (InstanceType) initWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError

Parameters:

  • aExceptionMessage:
  • aError:

innerError  retain

@property (retain) NSError *innerError

serverStackTrace  copy    (declared in ROException)

@property (copy) nonnull NSString *serverStackTrace

 

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

innerError  retain

@property (retain) NSError *innerError

serverStackTrace  copy    (declared in ROException)

@property (copy) nonnull NSString *serverStackTrace

 

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithInnerError:

Creates an exception object with the default error message and assigns the internal error object to it.

+ (RODispatchErrorException *) exceptionWithInnerError:(NSError *)aError

Parameters:

  • aError: The error object returned by the underlying communication subsystem

exceptionWithMessage:    (declared in ROException)

+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage:

exceptionWithMessage:innerError:

Creates an exception object with a custom error message and assigns the internal error object to it.

+ (RODispatchErrorException *) exceptionWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError

Parameters:

  • aExceptionMessage: Text message describing the error condition
  • aError: The error object returned by the underlying communication subsystem

 

initWithInnerError:

- (InstanceType) initWithInnerError:(NSError *)aError

Parameters:

  • aError:

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:

initWithMessage:innerError:

- (InstanceType) initWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError

Parameters:

  • aExceptionMessage:
  • aError: