Aspect-Oriented Exception Handling for Network Programming in a Component-based Framework

Takeru Ujinawa and Naohiro Hayashibara


Exception handling, aspect-oriented programming, component-based framework, network programming


Exception handling is one of the most important factors in software development. It provides fault-tolerant functionality for possible errors occurred during execution. Most of modern programming languages~(e.g., Java, C++, OCaml, Ruby, etc.) have such function. On the other hand, it is able to make the program complicated. One of the main drawback is to generate code clones. In this paper, we focus on exception handling on networking using aspect-oriented approach in a component-based framework implemented in Java. Handling I/O related exceptions is separated from the main code and then weave it into the program before compiling. It reduces the cost of programming and increases readability of the program code. This approach is implemented as an extension of the Squareknot framework. We also discuss on the effect of this approach in the view point of source code and bytecode.

Important Links:

Go Back