iOS SDK API Reference

SKWPeerError.h
Go to the documentation of this file.
1 // SKWPeerError.h
3 // SkyWay SDK
5 #import <Foundation/Foundation.h>
6 #import "SKWCommon.h"
7 
12 #ifndef DOXYGEN_SKIP_THIS
13 typedef NS_ENUM(NSInteger, SKWPeerErrorEnum)
15 {
17  SKW_PEER_ERR_NO_ERROR = 0,
19  SKW_PEER_ERR_BROWSER_INCOMPATIBLE = -1,
21  SKW_PEER_ERR_DISCONNECTED = -2,
23  SKW_PEER_ERR_INVALID_ID = -3,
25  SKW_PEER_ERR_INVALID_KEY = -4,
27  SKW_PEER_ERR_NETWORK = -5,
29  SKW_PEER_ERR_PEER_UNAVAILABLE = -6,
31  SKW_PEER_ERR_SSL_UNAVAILABLE = -7,
33  SKW_PEER_ERR_SERVER_ERROR = -8,
35  SKW_PEER_ERR_SOCKET_ERROR = -9,
37  SKW_PEER_ERR_SOCKET_CLOSED = -10,
39  SKW_PEER_ERR_UNAVAILABLE_ID = -11,
41  SKW_PEER_ERR_AUTHENTICATION = -12,
43  SKW_PEER_ERR_WEBRTC = -20,
45  SKW_PEER_ERR_ROOM_ERROR = -30,
47  SKW_PEER_ERR_UNKNOWN = - 9999,
48 };
49 #endif // !DOXYGEN_SKIP_THIS
50 
51 
55 @interface SKWPeerError : NSObject < NSCopying >
56 
60 @property (nonatomic, readonly) NSString* typeString;
61 
65 @property (nonatomic, readonly) NSString* message;
66 
67 #ifndef DOXYGEN_SKIP_THIS
68 @property (nonatomic, readonly) SKWPeerErrorEnum type SKYWAY_API_DEPRECATED;
72 
76 @property (nonatomic, readonly) NSError* error SKYWAY_API_DEPRECATED;
77 #endif // !DOXYGEN_SKIP_THIS
78 
79 @end
SKWPeerError::typeString
NSString * typeString
Error type string.
Definition: SKWPeerError.h:60
SKWPeerError
Error information class.
Definition: SKWPeerError.h:55
SKWPeerError::message
NSString * message
Error message.
Definition: SKWPeerError.h:65