Changed constructor visibility of custom exceptions to prevent instantiation outside their declaring assemblies.