activityduplicate.error - Events - Author API

Author API Events

activityduplicate:error

Fires after an Activity has failed to duplicate.

You would want to be notified about this event firing, because you might want to handle the error gracefully and then display a custom error message to the content creator, for example.

This event fires after the save:activity:error event, in the case of a shallow copy of an Activity which has failed.

The save:activity:error event will not be fired in the case of a deep copy of an Activity which has failed.

Examples

authorApp.on('activityduplicate:error', function (event) {
    console.log('This code executes when the Activity has failed to duplicate.');
    console.log(event);
});

Callback arguments

  • Error object

    Information about the error.

Related articles

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.