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.
如果遇到错误,即便简单的行为,如打印一条错误消息,都会突然变得困难重重,因为您可能没有内存来执行这些操作。
Please consider the environment before printing this message.
在打印这些信息前,请考虑一下环境。
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.
程序中断,并弹出“对不起,您运气不好”的消息或打印出堆栈跟踪,这不是错误处理,而是错误报告。
应用推荐