FreshMvvm icon indicating copy to clipboard operation
FreshMvvm copied to clipboard

Better exception description

Open cimicdk opened this issue 8 years ago • 4 comments
trafficstars

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 :)

cimicdk avatar Aug 28 '17 19:08 cimicdk

Agreed!!!! Going through this now myself.

bbqchickenrobot avatar Sep 04 '17 03:09 bbqchickenrobot

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.

EmilAlipiev avatar Sep 04 '17 14:09 EmilAlipiev

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 :)

cimicdk avatar Sep 12 '17 15:09 cimicdk

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.

codegrue avatar Jan 15 '18 20:01 codegrue