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;