ROInvalidUrlException
Overview
This exception is thrown by client channels and messages when they parse URL Schemes and configure themselves accordingly. There are two possible causes of this exception:
- the URL passed is just misformed
- the URL is valid but some part of it is not supported by the receiver object, e.g. you try to configure TCP channel with a HTTP-based URL
Location
- Reference: ROExceptions.h
- Namespace: RemObjectsSDK
- Ancestry: NSException | ROException | ROInvalidUrlException
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithInvalidPart:
Creates an exception instance and allows to specify the wrong part of the URL.
+ (ROInvalidUrlException *) exceptionWithInvalidPart:(NSString *)aPart
Parameters:
- aPart: The specific part of the URL that is considered wrong
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
initWithInvalidPart:
- (InstanceType) initWithInvalidPart:(NSString *)aPart
Parameters:
- aPart:
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:
invalidPart copy
Contains the specific part of the URL that is considered wrong. Contains the entire URL for the worst case.
@property (copy) NSString *invalidPart
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
invalidPart copy
Contains the specific part of the URL that is considered wrong. Contains the entire URL for the worst case.
@property (copy) NSString *invalidPart
serverStackTrace copy (declared in ROException)
@property (copy) nonnull NSString *serverStackTrace
exceptionName (declared in ROException)
+ (nonnull NSString *) exceptionName
exceptionWithInvalidPart:
Creates an exception instance and allows to specify the wrong part of the URL.
+ (ROInvalidUrlException *) exceptionWithInvalidPart:(NSString *)aPart
Parameters:
- aPart: The specific part of the URL that is considered wrong
exceptionWithMessage: (declared in ROException)
+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage
Parameters:
- aExceptionMessage:
initWithInvalidPart:
- (InstanceType) initWithInvalidPart:(NSString *)aPart
Parameters:
- aPart:
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: