Loading...
Please wait, while we are loading the content...
Similar Documents
Dynamically Registering C++ Exception Handlers: Centralized Handling of C++ Exceptions in Application Framework Libraries
| Content Provider | Semantic Scholar |
|---|---|
| Author | Daly, Nathaniel H. |
| Copyright Year | 2013 |
| Abstract | The C++ exceptions mechanism enables modularized programs to separate the reporting of exceptional conditions from the handling of those exceptional conditions into the locations where those actions can best be performed. It is often the case in such modular applications that the module capable of detecting an exceptional situation cannot know how it should be handled, and so C++ exceptions allow the module that invoked the operation to react to the condition. Libraries developed separately from the applications using them are a perfect example of modularized code, and thus a perfect candidate for using C++ exceptions, however many of the application framework library paradigms that have become commonplace do not provide adequate exception support to allow for good programming style with regard to catching and handling exceptions. In these libraries, there often exist multiple callback-style entry points that invoke applicationspecific operations, all of which require exactly identical exception handling, yet there is no way to collect this code together. Instead, the exception handling code must be duplicated across each entry point. In this paper, I will explore the best solutions to this problem currently provided by such frameworks; I will propose an additional solution to this problem: a method for allowing a program to register exception-handler operations templated by exception type; and finally, I will identify any impacts that the newly released C++11 standard and the currently evolving C++14 standard have on the problem. |
| File Format | PDF HTM / HTML |
| Alternate Webpage(s) | https://deepblue.lib.umich.edu/bitstream/handle/2027.42/102769/nathdaly-thesis.pdf;sequence=4 |
| Language | English |
| Access Restriction | Open |
| Content Type | Text |
| Resource Type | Article |