See the Macintosh User Interface Guidelines for the original Mac. They thought this through.
Error messages were to be two sentences. The first one explains the problem. The second sentence says what to do about it. There were rules for buttons, too. "Your file has been lost" should have a button that says "Sorry", not "OK".