异常处理的最常见用法是中断一个函数,将异常提交给调用程序(可能是该调用程序,或者是堆栈中上级调用程序)。
The most common use of exception handling is breaking out of a function to raise an exception to a caller (which may be the caller or a caller higher up the stack).
否则,发生中断以 find(查找),并且异常处理程序发出标准的 file not found(文件未找到)错误。
Otherwise, a trap occurs for find, and the exception handler emits the standard file not found error.
使用Last Will和Testament特性通知有关各方客户端异常中断的机制。
A mechanism to notify interested parties to an abnormal disconnection of a client using the Last Will and Testament feature.
应用推荐