modular: refactor of exception handling provider