In this paper, we address the feature interaction problem as a software composition problem. We show the applicability of a new programming style, feature-oriented programming (FOP), to typical feature interaction problems. FOP generalizes inheritance as in object-oriented programming and allows to compose objects with individual services from a set of features. In particular, we discuss exception handling within FOP and apply FOP to automata-based description techniques.