I know that there are fixed array of code 0 - 42 from here : http://docs2x.smartfoxserver.com/AdvancedTopics/client-error-messages
Is it possible to set the error code and error message beyond 42 ? in my case, it is at 201.
or we should use 28 instead for any custom messages ?
I tried
Code: Select all
let customParam:String = SFSErrorCodes.getErrorMessage(201, params: evt.params["errorCode"] as? [Any])
libc++abi: terminating with uncaught exception of type NSException
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 201 beyond bounds [0 .. 42]'
Many thanks in advance!