Integrating Exception classes, factory, and handling