> Proponents of exceptions may say, “this is so much manual writing labor, exception stack trace would automate that!”<p>Yes indeed.<p>> by writing custom messages, we can provide more details useful for debugging (for example, the os.ReadFile helped us with a filename);<p>Custom exceptions anyone ?<p>> by not relying on code line numbers, the messages are more long-lived, and can actually be understood and reasoned about in isolation, without access to the source code.<p>Doubt...<p>I quite like Go (some aspects of it anyway) and it's proven both useful and successful, but some people will go great length to find virtues in its weaknesses.