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
- Reference: ROClientChannel.h
- Namespace: RemObjectsSDK
- Ancestry: NSException | ROException | ROClientChannelException | RODispatchErrorException | Descendants
exceptionName (declared in ROException)
Return the exception name to be used to construct the class instance as NSException descendant. See NSException documentation for more details.
+ (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)
Constructs the excetion instance with the given text message (corresponds to reason of NSException).
+ (ROException *) exceptionWithMessage:(NSString *)aExceptionMessage
Parameters:
- aExceptionMessage: A text string decribing the exception
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:
Initializes the exception object with the default error message and assigns the internal error object to it.
- (id) initWithInnerError:(NSError *)aError
Parameters:
- aError: The error object returned by the underlying communication subsystem
initWithMessage: (declared in ROException)
initializes a new ROException with the given error message.
- (id) initWithMessage:(NSString *)aExceptionMessage
Parameters:
- aExceptionMessage: A text string decribing the exception
initWithMessage:fromServer: (declared in ROException)
Initializes a new ROException with the given error message and optionally marks the exception as having been received from a server by setting the fromServer property.
- (id) initWithMessage:(NSString *)aExceptionMessage fromServer:(BOOL)aFromServer
Parameters:
- aExceptionMessage: A text string decribing the exception
- aFromServer: Set to YES for server side exceptions.
initWithMessage:innerError:
Initializes the exception object with a custom error message and assigns the internal error object to it.
- (id) initWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError
Parameters:
- aExceptionMessage: Text message describing the error condition
- aError: The error object returned by the underlying communication subsystem
innerError retain
@property (retain) NSError *innerError
serverStackTrace copy (declared in ROException)
Used to store the stack trace of server exception. The availability of this information depends on the server platform.
@property (copy) 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)
Used to store the stack trace of server exception. The availability of this information depends on the server platform.
@property (copy) NSString *serverStackTrace
exceptionName (declared in ROException)
Return the exception name to be used to construct the class instance as NSException descendant. See NSException documentation for more details.
+ (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)
Constructs the excetion instance with the given text message (corresponds to reason of NSException).
+ (ROException *) exceptionWithMessage:(NSString *)aExceptionMessage
Parameters:
- aExceptionMessage: A text string decribing the exception
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:
Initializes the exception object with the default error message and assigns the internal error object to it.
- (id) initWithInnerError:(NSError *)aError
Parameters:
- aError: The error object returned by the underlying communication subsystem
initWithMessage: (declared in ROException)
initializes a new ROException with the given error message.
- (id) initWithMessage:(NSString *)aExceptionMessage
Parameters:
- aExceptionMessage: A text string decribing the exception
initWithMessage:fromServer: (declared in ROException)
Initializes a new ROException with the given error message and optionally marks the exception as having been received from a server by setting the fromServer property.
- (id) initWithMessage:(NSString *)aExceptionMessage fromServer:(BOOL)aFromServer
Parameters:
- aExceptionMessage: A text string decribing the exception
- aFromServer: Set to YES for server side exceptions.
initWithMessage:innerError:
Initializes the exception object with a custom error message and assigns the internal error object to it.
- (id) initWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError
Parameters:
- aExceptionMessage: Text message describing the error condition
- aError: The error object returned by the underlying communication subsystem
Descendants
See Also
ROHTTPClientChannel ROSuperHTTPClientChannel ROTCPClientChannel