return error if selector does not have view class