I know that it is a good thing to always make exceptions serializable. But should I also always make them public? Even if they should only be caught internally? I wonder if there potentially be any security issues or serialization problems (e.g. marshalling across appdomains) if the exceptions are not public.
Share
Yes, they should.
If you know that the exception will always be caught by your own code, then it is OK to make it
internal.