Patent ID: 8127277

Claim:
A computer implemented method for returning a return code to an error hook in an application using a framework, the computer implemented method, executed by a processor, comprising: responsive to receiving an error identifier and a pass-through from the error hook, determining if the error identifier has an active status, wherein the error hook is software code in the application, and wherein the pass-through is a set of parameters; responsive to a determination that the error identifier has an active status, retrieving a set of framework conditions using the error identifier; responsive to a determination that the set of framework conditions is met, retrieving an inject callback using the error identifier, wherein the inject callback is a block of code in the application that determines whether an error should be injected into the application; responsive to calling the inject callback with the error identifier and the pass-through as parameters, receiving an inject callback return code from the inject callback; and responsive to a determination that the inject callback return code is an execute return code, returning the execute return code to the error hook.