Custom exception vs built in exception with very descriptive message
问题 I came across an interesting situation today: I have a small app with a settings file, which is well documented in the documentation, but if the file is not there, what would be better: throw a filenotfoundexception and give a very depressive message that the settings file is not available, or create a custom exception (already, the disadvantage is the work in doing this, even though it'll take 10 minutes) called SettingsFileNotFoundException. This will give it away immediately, what the