During the registration process, the user may cause several errors, for example, the username has already been made, an invalid email address, etc.
Parse returns inside the error object all the necessary information, see http://parse.com/docs/dotnet/api/html/T_Parse_ParseException_ErrorCode.htm
I canβt find out how to use them, for example, how to contact them to write a switch to catch all the possibilities:
user.signUpInBackgroundWithBlock {
(succeeded: Bool!, error: NSError!) -> Void in
if error == nil {
self.updateLabel("Erfolgreich registriert")
} else {
println(error.userInfo)
}
}
What can I do to switch possible error codes? Please advise Thank you!
source
share