SOSErrorCode
enum SOSErrorCode {}
SOS ErrorCode definitions.
Errors fall into one of several groups (or series) of errors.
If there is an error thrown by a library dependency it will be included as metadata in the userInfo of the error which is returned to the application code.
-
Unclassified error. This results from an unknown or unexpected error state.
Any other un-grouped errors will be added to the 0-99 series error group.
Declaration
Objective-C
SOSGenericError = 1000Swift
case SOSGenericError = 1000 -
Returned from <[SOSSessionManager startSessionWithOptions:completion:]> if the SOSOptions provided is
nilor invalid.Declaration
Objective-C
SOSInvalidOptions = 1001Swift
case SOSInvalidOptions = 1001 -
Returned from <[SOSSessionManager startSessionWithOptions:completion:]> if SOSOptions contains invalid camera options. (e.g. initialCameraType =
SOSCameraTypeBackFacing&& <[SOSOptions featureClientBackCameraEnabled]> ==NO)Declaration
Objective-C
SOSInvalidOptionsCameraSettings = 1002Swift
case SOSInvalidOptionsCameraSettings = 1002
-
Standard connection error. This can be thrown from any part of the SOS Session connection flow.
All connection related errors will be found in the 100-199 series error group.
Declaration
Objective-C
SOSConnectionError = 2000Swift
case SOSConnectionError = 2000 -
Returned from <[SOSSessionManager startSessionWithOptions:completion:]> if there is a session already active or in progress.
Declaration
Objective-C
SOSSessionIsActiveError = 2001Swift
case SOSSessionIsActiveError = 2001 -
Returned from <[SOSSessionManager stopSessionWithCompletion:]> if there is no active session to stop.
Declaration
Objective-C
SOSNoActiveSessionError = 2002Swift
case SOSNoActiveSessionError = 2002 -
Returned if the network becomes unavailable.
Declaration
Objective-C
SOSNetworkUnavailableError = 2003Swift
case SOSNetworkUnavailableError = 2003
-
Standard server error. This can be returned from operations made to the SOS server.
All server related errors will be found in the 200-299 series error group.
Declaration
Objective-C
SOSServerError = 3000Swift
case SOSServerError = 3000 -
Server metadata error. This can be returned from operations attempting to update the state of the session.
Declaration
Objective-C
SOSServerMetaDataError = 3001Swift
case SOSServerMetaDataError = 3001 -
Error returned when the session creation request is not successful.
Declaration
Objective-C
SOSServerSessionCreationError = 3002Swift
case SOSServerSessionCreationError = 3002 -
Error returned when agent availability API encounters a problem.
Declaration
Objective-C
SOSAgentAvailabilityError = 3003Swift
case SOSAgentAvailabilityError = 3003 -
Error occured when attempting to disconnect a session after a switch server occurred.
Declaration
Objective-C
SOSSwitchServerSessionDisconnectError = 3004Swift
case SOSSwitchServerSessionDisconnectError = 3004 -
Error returned when the session end request is not successful.
Declaration
Objective-C
SOSServerSessionEndError = 3005Swift
case SOSServerSessionEndError = 3005
-
Standard communication error. This can be returned from operations dependent on communication between SOS or any other remote system.
All communication related errors will be found in the 300-399 series error group.
Declaration
Objective-C
SOSCommunicationError = 4000Swift
case SOSCommunicationError = 4000 -
Returned by the framework if there are no agents available to serve a session attempt.
Declaration
Objective-C
SOSNoAgentsAvailableError = 4001Swift
case SOSNoAgentsAvailableError = 4001 -
Returned by the framework if the network test has failed to start.
Declaration
Objective-C
SOSNetworkTestError = 4002Swift
case SOSNetworkTestError = 4002 -
Returned by the framework if the network test has determined that the environment cannot support an SOS session.
Declaration
Objective-C
SOSInsufficientNetworkError = 4003Swift
case SOSInsufficientNetworkError = 4003
-
Standard internal framework error. This can be returned from operations performed within the SOS framework.
All internal errors will be found in the 400-499 series error group.
Declaration
Objective-C
SOSInternalError = 5000Swift
case SOSInternalError = 5000
-
Standard RTC Provider error. This can be returned as a result of operations performed by the RTC provider.
Since the RTC provider is a separate library, error specifics will be wrapped and included in the userInfo of errors returned with this code.
Declaration
Objective-C
SOSRTCProviderError = 6000Swift
case SOSRTCProviderError = 6000 -
Error returned if there is a problem creating an authentication token with the WebRTC provider.
Declaration
Objective-C
SOSRTCProviderAuthenticationError = 6001Swift
case SOSRTCProviderAuthenticationError = 6001
Install in Dash
SOSErrorCode Enumeration Reference