Skip to main content

Error Codes

Callback Method Information

public void OnError(ChatErrorModel error) {}

ChatErrorModel Class Details

Data KeyDescriptionType
codeError codestring
messageError messagestring

Source Code

using UnityEngine;
using PlayNANOO.ChatServer;
using PlayNANOO.ChatServer.Models;

public class PlayNANOOChatExample : MonoBehaviour, IChatListener
{
ChatClient chatClient;

void Start()
{
chatClient = new ChatClient(this);
chatClient.Connect();
}

void Update()
{
if (chatClient != null)
{
chatClient.Service();
}
}

public void OnError(ChatErrorModel error)
{
Debug.Log(error.code);
Debug.Log(error.message);
}
}

Error Information

Server connection failure
ErrorCode : 1000
ErrorMessage : NoConnectException

Game information does not exist
ErrorCode : 1001
ErrorMessage : NoGameServiceException

User information does not exist
ErrorCode : 1002
ErrorMessage : NoPlayerException

Not subscribed to channel
ErrorCode : 2000
ErrorMessage : NotSubscribeException