Error Handling

Sorry if this has already been posted but how may i go about error handing?

I am connecting to an Amazon server using Coronium so the answer i reveice is more than just an error code. How can I take the error code and tell the user that they need to redo something.

Error: 1062

– Duplication of a username in a mysql database –

Hello krpatel420

i think if you are getting that reply error code “1062” in response

you may perfrom some action.

like just store that value like and check

if(error_code ==1062) then

–Show native alert of corona sdk

print the message “USER already registerd”

end

i think this may helps

Cheers

Neel 

Hello krpatel420

i think if you are getting that reply error code “1062” in response

you may perfrom some action.

like just store that value like and check

if(error_code ==1062) then

–Show native alert of corona sdk

print the message “USER already registerd”

end

i think this may helps

Cheers

Neel