Host Status, Constants, and Error Codes
1 Host State Enum HostState
-
UNAVAILABLE
-
WAITING
-
RUNNING
-
PLAYING
2 Error Code
Core
| Error Code | Meaning | Error Handling |
|---|---|---|
0 | Success | - |
1 | Unknown Error | Restart the host |
2 | Invalid parameter, e.g., the value in options is illegal | Restart the host |
3 | Status is invalid | Restart the host |
10 | The WebView process was terminated by the iOS system, usually occurring when memory is insufficient | Restart the host |
Runtime
| Error Code | Meaning | Error Handling |
|---|---|---|
0 | Success | - |
9999 | Unknown Error | Restart the host |
9001 | Network connection is abnormal | Check network status |
9002 | Network timeout | Check network status |
9003 | Host service request failed | Restart the host |
9004 | Host service request is abnormal | Restart the host |
9005 | Host login information has expired | Reset Login Information |
10001 | SDK not initialized | Initialize SDK TJHostHandle.initialize |
10002 | Host not initialized | Initialize the host hostHandle.createGameHandle |
10003 | Did not select to start the game | Pass in the correct GameId |
10004 | Game not found | Pass in the correct GameId |