Exception driven framework