Page 1 of 1

Error List

Posted: 08 May 2008, 13:57
by duncanhall
Is there somewhere I can view a list of all the error responses sent from the server?

In my onJoinRoomError event handler, I want to able to determine the specific cause of the error and inform the user appropriately. This will involve a simple switch statement for the error argument passed to the event, but without purposefully invoking all the possible errors, I have no way of knowing what string I am looking for. The same applies for all other error handlers.

Posted: 09 May 2008, 08:09
by duncanhall
Is this just a resounding "NO" then? Surely there must be somewhere I can find a list of generated errors?

Posted: 09 May 2008, 09:12
by BigFIsh
I looked too. Not sure where to find them.

At the moment I'm just doing..

if (error == "user name not found") {
errormsg.text = "Sorry, username doesn't exist";
}

Posted: 09 May 2008, 09:16
by duncanhall
Yeah, thats basically what I'm looking to do, except there's various different errors that could be thrown back like "user not found", "room doesnt exist", "room is full", "wrong passord" etc. I really dont want to have to force my application into causing all these errors just so i can find out what strings I should be evaluating against.

I'm also implementing around 12 different languages in my application, so simply using the server string is not an option?

Someone must know where I can find these?

Posted: 12 May 2008, 14:42
by duncanhall
*Bump*

Seriously, I have to cause all possible errors in my application to find out what they might be?!

Posted: 12 May 2008, 16:34
by Lapo
Hi, sorry for the delay.
I will provide a list in the next days.

We're planning a code-based error system that will allow easier customization and localization

hope it helps

Posted: 12 May 2008, 18:06
by duncanhall
Excellent, thanks a lot. :D

Posted: 16 May 2008, 08:12
by duncanhall
Any closer to having these available?

Thanks.

Posted: 19 May 2008, 06:18
by Lapo
Here we go:

[LOGIN]
Sorry, this zone is full!
You should provide a non empty user name!
User already logged in
This user name is already taken.
Your username contains badwords!
Too many connections coming from your ip address.

[JOIN]
This room is currently full
All player slots are occupied
All spectator slots are occupied
User is already in this room!
Room does not exist or was just deleted (id=XX)

[ROOM CREATION]
Bad or empty room name.
Room name already taken.
Too many rooms.
You have reached the max. amount of rooms that you can create at once.

[BUDDYLIST]
Unable to load the Buddy List!
Your buddy list is full!

Posted: 19 May 2008, 07:59
by duncanhall
Awesome, thanks a lot Lapo! :)