throw exception if invalid type selector