发明名称 Local buffers for event handlers
摘要 A technique is described for generating error buffer that includes errors from both a program and event handlers called by the program. A program in an event-driven environment triggers an event. In response to the triggered event, the program calls event handlers related to the event. The event handlers are executed and error messages generated during the execution are stored in a local error buffer. Upon completion of the event handlers, the local error buffers are returned to the program and the program merges the local error buffers with an error buffer associated with the program.
申请公布号 US9575819(B2) 申请公布日期 2017.02.21
申请号 US201314020633 申请日期 2013.09.06
申请人 SAP SE 发明人 Baeuerle Stefan;Falter Timm;Hutzel Daniel
分类号 G06F9/54;G06F11/07 主分类号 G06F9/54
代理机构 Fountainhead Law Group PC 代理人 Fountainhead Law Group PC
主权项 1. A computer-implemented method, comprising: determining, by a processor, that an event has been triggered during execution of a program, wherein the program includes: an error context generating an error message in a formatting when a first error is detected during execution of the program and an error buffer storing the generated error message; executing, by the processor, a first registered event handler associated with the event in response to the determination, wherein the first registered event handler includes: a first local error context generating a first local error message when a second error is detected during execution of the first registered event handler anda first local error buffer storing the first local error message,and wherein the first registered event handler copies the error context to the first local error context during initialization of the first registered event handler so that the formatting is applied to error messages generated during execution of the first registered event handler and error messages generated during execution of the program; and merging, by the processor, the first local error buffer into the error buffer.
地址 Walldorf DE