hello, i have a many classes that inherit from Exception class. all these classes have same code and handle the exptions for each property in it. the question is is there is a way to write a generic class for all these classes so I skip writing same code for each. note that when i want to throw an exception i would like to throw new propertyEmptyException for example. any recommendation ?
Also remeber Kob, exception should be just that, an exception. Only throw them if it is necessary, i.g. when writing a Lib and you can't controll the guy who is consuming it.
There is one downside to using pre-release versions of .net
Especially if you're using CI or whatever
When you deploy your builds to prod, there's a chance that your app won't work because an update was released so now the app is built against RC2 and you only have the runtime for RC1 installed
Same with test too
I may have had to update the app server a few times
Immediately followed by another step to install the latest version of 3.0.x because the swashbuckle cli tools don't work properly on 3.1 (at least the version I'm using anyway)
"It is a near-final release of .NET 5.0, and the last of two RCs before the official release in November. RC2 is a “go live” release; you are supported using it in production."
I've been using .net 5 in prod since preview 3 or 4
Although it wasn't the end of the world if it didn't work at that point, but around the release of preview 7 I updated the service that in on .net 5 and it's consumers so it's a fully required dependency