[DependencyInjection] fixed wrong exception class