I have implemented software which have a DLL library which contains a set of classes which includes all the methods for my software.
Now I want to be able to handle some global errors like error #26 which is a no Network Related Error on all these classes instead of going to each class and add it. How should I do that?
If
#26is an exception then you can useAppDomain.CurrentDomain.UnhandledExceptionevent. If it’s just a return value, then I don’t see any chance to handle that globally.