1. A computer-implemented method, comprising: receiving, with a computer including a processor, an error inject script that describes one or more error inject scenarios that define under which conditions at least one error inject is to be executed; compiling the error inject script to output an error inject data structure; and while executing code that includes the error inject, receiving an indication that an event has been triggered; evaluating conditions defined in the one or more error inject scenarios using the error inject data structure; and for each of the conditions that evaluates to true, performing one or more actions defined in the error inject script for the condition.