This is an example of a good error message.
这里有一个很好的出错消息示例。
GetMessage : You can put in a human-readable message here although that's a fairly raw approach to sending along good error information.
getMessage:可以在这里放置易于理解的消息,但是这是一个传送良好错误信息的相当原始的方法。
For example, in Listing 3, it would be good to receive an error message when doing square-root (-22.0) and exiting the program with return status -1 instead of returning -1.0.
例如,在清单3中,当执行square - root(- 22.0)时应该产生错误消息,程序退出,返回状态应该是- 1而不是- 1.0。
That's true. Although you can always redirect stderr and stdout, nothing beats a good command line error message.
这是事实。虽然你总是可以重定向标准输出和标准错误输出,没有什么比命令行错误消息好。
So generally, if you don't get an error message in a command line environment like this, that's good.
一般来说,如果你在命令行界面,没有收到错误信息,那就是好消息。
It also ensures that the text will remain consistent and error-free throughout your message, so you don't have to worry about fussing over a perfectly good note only to screw it up part way through.
这也保证了文本将保持一致,无差错的整个消息,所以你不必担心大惊小怪了一个完美的音符只有通过给搞砸了一部分的方式。
It also ensures that the text will remain consistent and error-free throughout your message, so you don't have to worry about fussing over a perfectly good note only to screw it up part way through.
这也保证了文本将保持一致,无差错的整个消息,所以你不必担心大惊小怪了一个完美的音符只有通过给搞砸了一部分的方式。
应用推荐