Assess API Events
items:fetch:error
Fires when a fetch action for a batch of Items failed when using the addItems
public method.
You would want to be notified about this event firing so that you can respond to the error by showing a message to the learner or retrying the fetching action again, for example.
Examples
itemsApp.on('items:fetch:error', function () {
console.log('This code executes when a fetch action for a batch of Items has failed.');
});
Related articles
- The
items:fetch
event, the event that occurs when a fetch action for a batch of Items has begun. - The
items:fetch:done
event, the event that occurs when a batch of Items has been successfully fetched. - The Building Item Branching Assessments article for more information on dynamic assessments.