Hi again.
So, with try/catch I was able to catch the app42 exception thrown when the email is empty.
Un fortunatly it seem that the returned object is empty. Is that true ? Is there any way to get errCode & message ?
try {
userService.CreateUser(user, pwd, email,roleList,helioCallBack);
} catch (Exception e) {
App42Exception exception = (App42Exception)e;
Debug.Log("Empty ? " + exception.GetMessage();
Debug.Log("Empty ? " + exception.GetAppErrorCode().ToString();
}
If I print e I get this ; Do I need to manipulate this tring to extract "EmailAddress is Not Valid" ?
com.shephertz.app42.paas.sdk.csharp.App42Exception: EmailAddress is Not Valid
at com.shephertz.app42.paas.sdk.csharp.util.Util.ThrowExceptionIfEmailNotValid (System.Object obj, System.String name) [0x00000] in <filename unknown>:0
at com.shephertz.app42.paas.sdk.csharp.user.UserService.CreateUser (System.String uName, System.String pwd, System.String emailAddress, IList`1 roleList, App42CallBack callBack) [0x00000] in <filename unknown>:0
...
Thanks