When you add an optional String to the constructor of an Exception, this message can be retrieved by the Exception's getMessage() method. So technically, line 8 doesn't write to the output at all, but the code that catches the Exception may.
All things are lawful, but not all things are profitable.
We don't have time for this. We've gotta save the moon! Or check this out: