FreshMvvm
FreshMvvm copied to clipboard
Better exception description
Just had a PageModel that I wasn't able to load, after a while with trial-and-error I discovered that removing the constructor of my PageModel removed the issue. For some reason I had gotten the constructor created as protected instead of public.
CoreMethods.PushPageModel throws: An unhandled exception occured.
and FreshPageModelResolver.ResolvePageModel throws: FreshTinyIoC.TinyIoCResolutionException: Resolve failed: SomeNamePageModel
It makes perfect sense, but a "No public accessable constructor available" would be nice :)
Agreed!!!! Going through this now myself.
Earlier I made same ticket but I think either this is hard or take so much time to implement, it wasnt implement. But you can always see the reason in the Output window. information you need is there.
Ok, just never got into the habit of looking through all the output, so it took a while. Is all output from FreshMVVM prepended with something so it's easy to search for? Something like FreshMVVM: [log message]
Going to check it later, but still thinks that it would be nice to get a descriptive exception if it isn't too hard to implement :)
It seems to me that ANY exception in Xamarin or C# just becomes a FreshMVVM failure exception, with no way to see the actual problem. Makes troubleshooting very difficult. Unless I am missing something.