Custom client error messages

Post here your questions about the Objective-C API for SFS2X

Moderators: Lapo, Bax

User avatar
janheuninck
Posts: 68
Joined: 23 Nov 2011, 01:35
Location: Vancouver BC, Canada

Custom client error messages

Postby janheuninck » 07 Mar 2013, 22:58

Hi guys,

Is it possible to customize the client side error messages with the iOS API? The instructions page (http://docs2x.smartfoxserver.com/Advanc ... ient-error) only mentions AS3, C# and Java.

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

Re: Custom client error messages

Postby Lapo » 08 Mar 2013, 14:08

Hi, yes it can be done similarly to how it is done in the other languages:

Code: Select all

[SFSErrorCodes setErrorMessage:(NSInteger) message:(NSString *)]
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
janheuninck
Posts: 68
Joined: 23 Nov 2011, 01:35
Location: Vancouver BC, Canada

Re: Custom client error messages

Postby janheuninck » 08 Mar 2013, 15:49

Ok, Thanks!

Edit: SFSErrorCodes is not available in the iOS API. We are using v1.1.5.
User avatar
Lapo
Site Admin
Posts: 23026
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Custom client error messages

Postby Lapo » 09 Mar 2013, 17:41

Sounds strange, I have an OSX project running the 1.1.5 API and I am using the SFSErrorCodes class.
Can you show me the kind of error you are getting?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X iPhone / iPad / OSX API”

Who is online

Users browsing this forum: No registered users and 46 guests