Hello,
I am working on an application using the App42 services on Windows Runtime (Windows 8.1 and Windows Phone 8.1) and I am trying to print error messages in a clean way, but as of right now when I call GetMessage() on the App42Exception object that is passed into the OnException callback it simply returns the message as a JSON string.
Basically is it possible to provide a GetDetails() and a GetMessage() method that only returns those specific parts of the entire exception message instead of returning it formatted as a JSON string?
For example when I have an authentication error this is the result of GetMessage():
"{\"app42Fault\":{\"httpErrorCode\":404,\"appErrorCode\":2002,\"message\":\"Not Found\",\"details\":\"UserName/Password did not match. Authentication Failed.\"}}"
I would like to have a GetMessage() function that just returns "Not Found" and a GetDetails() function that returns "UserName/Password did not match. Authentication Failed" is this possible?