ROConnectionReestablishedException
Overview
The special exception class that can be thrown on any remote request in case the client channel detects a possible half open socket condition. SuperHTTP channel uses two HTTP connections, one of them is constantly open to receive any incoming data from the server (remore requests responses or events data). It is called waiting connection. Due to network failures on the route between the client and the server this connaction can be broken without notifying the client side. In this case the client will never receive any answer from the server until this HTTP connection reestablished. Because no data can be received all remote request will fail by timeout. So in case the client detects a remote request timeout it forcibly reestablishes the waiting HTTP connection. Reestablishing the waiting connection also means that no requests that are currently waiting for answer will ever receive it. That's why all pending requests are made failed with this exception.
Location
- Reference: ROSuperHTTPClientChannel.h
- Namespace: RemObjectsSDK
- Ancestry: NSException | ROException | ROSuperHTTPException | ROSuperHTTPCommunicationException | ROConnectionReestablishedException
exception
Creates an exception instance with the default error message.
+ (ROConnectionReestablishedException *) exception
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithMessage: (declared in ROException)
+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
exceptionWithMessage:innerError: (declared in ROSuperHTTPCommunicationException)
Creates an exception instance specifying error message and optional inner error object.
+ (ROSuperHTTPCommunicationException *) exceptionWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError
Parameters:
- aExceptionMessage: A text message describing the error condition
- aError: The error object returned by the HTTP 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
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: (declared in ROSuperHTTPCommunicationException)
- (InstanceType) initWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError
Parameters:
- aExceptionMessage:
- aError:
innerError retain (declared in ROSuperHTTPCommunicationException)
The error object returned by the HTTP subsystem
@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 (declared in ROSuperHTTPCommunicationException)
The error object returned by the HTTP subsystem
@property (retain) NSError *innerError
serverStackTrace copy (declared in ROException)
@property (copy) nonnull NSString *serverStackTrace
exception
Creates an exception instance with the default error message.
+ (ROConnectionReestablishedException *) exception
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithMessage: (declared in ROException)
+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
exceptionWithMessage:innerError: (declared in ROSuperHTTPCommunicationException)
Creates an exception instance specifying error message and optional inner error object.
+ (ROSuperHTTPCommunicationException *) exceptionWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError
Parameters:
- aExceptionMessage: A text message describing the error condition
- aError: The error object returned by the HTTP subsystem
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: (declared in ROSuperHTTPCommunicationException)
- (InstanceType) initWithMessage:(NSString *)aExceptionMessage innerError:(NSError *)aError
Parameters:
- aExceptionMessage:
- aError: