done changes as per the comments made from the code review

Since this will happen at the component initialization, it will cause whole component initialization fail. So make it as error message and not re throw again.