Error List

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Error List

Post 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.
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

Is this just a resounding "NO" then? Surely there must be somewhere I can find a list of generated errors?
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post 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";
}
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post 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?
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

*Bump*

Seriously, I have to cause all possible errors in my application to find out what they might be?!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

Excellent, thanks a lot. :D
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

Any closer to having these available?

Thanks.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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!
Lapo
--
gotoAndPlay()
...addicted to flash games
duncanhall
Posts: 29
Joined: 04 May 2008, 14:52
Contact:

Post by duncanhall »

Awesome, thanks a lot Lapo! :)
Post Reply