Does anyone have any idea on how to handle a try/catch at a class level or Property level where a lot of coding isn't needed? I am using MVVM for my project.
Let's say you have Class A with 10 to 15 properties and in each property the data model that the ViewModel is binded to may or may not throw an exception depending upon certain criteria. How do I handle that, instead of writing a try/catch block in every
setter of the properties?
The data models' properties setter may throw an exception and I want to find the cleanest way to handle it.
Any suggestion is much appreciated.
View Complete Post