context: ENG-2139
This code allows handling exceptions generated by canceling tasks (for now only when clearSensitiveData is called.
In the future maybe it will be cleaner and better to rely on the error code to avoid parsing the message but for now it's not possible, rejecting the promise allows passing only string link;
For other tooltip actions we don't need to manually set this style. Can we use the mechanism we already have, or are there any reasons for not doing so?