发明名称 Method and apparatus for deferred throwing of exceptions in C++
摘要 Methods and apparatuses for deferring, or delaying, the throwing of exceptions are disclosed. In one aspect of the present invention, an exception is raised during an invocation of a first object within an object-based system. The exception may be processed by catching the exception and making a first copy of the exception. Making the first copy of the exception includes storing the first copy of the exception in a dynamic memory. The first copy of the exception may then be processed by creating a runtime copy of the exception that is stored on an execution heap. The runtime copy of the exception may is then caught. The first copy of the exception is deleted from the dynamic memory, and the caught runtime copy of the exception is reprocessed. In one embodiment, processing the first copy of the exception includes throwing the first copy of the exception as a system exception. In such an embodiment, throwing the first copy of the exception as a system exception causes the runtime copy of the exception to be created.
申请公布号 US6205491(B1) 申请公布日期 2001.03.20
申请号 US19970993075 申请日期 1997.12.18
申请人 SUN MICROSYSTEMS, INC. 发明人 CALLSEN CHRISTIAN J.;CAVANAUGH KEN M.
分类号 G06F9/44;G06F9/46;G06F9/48;(IPC1-7):G06F9/00;G06F15/163 主分类号 G06F9/44
代理机构 代理人
主权项
地址