Added  interceptor which emits error on rootScope

Part of the changes for TargetProcess Story 23810. The changes for the method theme still need to be done.