add raising of exception while provider required dependency is undefined