If you encounter an error, even simple behaviour such as printing an error message suddenly becomes problematic because you might not have the memory to perform the operation.
如果遇到错误,即便简单的行为,如打印一条错误消息,都会突然变得困难重重,因为您可能没有内存来执行这些操作。
Crashing, spitting out a "sorry, you're out of luck" message, or printing out a stack trace is not error handling. That is error reporting.
程序中断,并弹出“对不起,您运气不好”的消息或打印出堆栈跟踪,这不是错误处理,而是错误报告。
The old test tried printing the object without the setup, caught the exception if it occurred, then printed with the setup if needed (and gave a message about what happened).
老的测试会试图不借助设置去打印对象,如果发生异常则捕获之,然后如果需要的话借助设置再去打印(并给出一个关于所发生事情的消息)。
The luaL_checknumber() function can also be used to check arguments, printing an informative error message and aborting execution of the function.
luaL_checknumber()函数还可以用于检查参数,并且还能打印包含信息的错误消息,以及中断函数的执行。
CLPPlus supports printing of DBMS_OUTPUT message buffer contents onto the CLPPlus console using server output facility.
CLPPlus支持使用服务器输出工具打印dbms_out PUT消息缓冲内容到CLPPlus控制台上。
It's okay to interrupt ifrom while it's printing a large message; the message will not be deleted or otherwise affected, since we opened the server with the Peek option set to 1.
可以在ifrom打印大型消息时中断它;消息不会被删除或受影响,因为我们打开服务器时将Peek选项设为1。
Apple responded wryly by printing the message "Don't steal music" on a plastic sticker placed on all new iPods.
苹果公司还嘲讽般地在所有新上市的ipod的塑料背盖上印上了“不准盗版音乐”的字样。
As an alternative, you can catch this exception directly in your code and handle it some other way (perhaps printing out the actual error message along with usage information, for instance).
一个替代的方法是,您也可以在代码中直接捕捉这个异常,并且用其他方式处理异常(例如,可能会与使用信息一起输出真正的错误消息)。
Lisa: Well, I just need to ask him something about the printing job he gave us. Could you take a message for him?
嗯,我想问问他关于他交给我们的打印工作的事,您能帮我给他留条信息吗?。
Lisa: Well, I just need to ask him something about the printing job he gave us. Could you take a message for him?
嗯,我想问问他关于他交给我们的打印工作的事,您能帮我给他留条信息吗?。
应用推荐