Mining Exception-Handling Rules as Sequence Association Rules
Source: North Carolina State University
Programming languages such as Java and C++ provide exception-handling constructs such as try-catch to handle exception conditions that arise during program execution. Under these exception conditions, programs follow paths different from normal execution paths; these additional paths are referred to as exception paths. Applications developed based on these programming languages are expected to handle these exception conditions and take necessary recovery actions. For example, when an application reuses resources such as files or database connections, the application should release the resources after the usage in all paths including exception paths. Failing to release the resources can not only cause performance degradation, but can also lead to critical issues.