Author API Events
save:activity:error
Fires after an Activity has failed to save.
You would want to be notified about this event firing, because you might want to track the error message for debugging, for example.
Examples
authorApp.on('save:activity:error', function () {
console.log('This code executes when an Activity has failed to save.');
});
Callback arguments
-
activityJson object
JSON of the Activity that has failed to save.
-
Error object
Information about the error.
Related articles
- The
saveActivity()
method, which saves the current Activity being edited. - The
activityedit:saveable:changed
event, which fires when the save Activity state changes. - The
save:activity
event, which fires before an Activity is to be saved. - The
save:activity:success
event, which fires when an Activity has successfully saved.