Feedback Aide API Events
feedback:error
Fires when an error occurs during the feedback generation process.
You would want to be notified about this event firing, because you might want to update your application UI to indicate there is an error, for example.
Examples
// Using the feedbackSession instance
feedbackSession.on('feedback:error', function (error) {
console.log(error);
});
// Using the sessionUI instance
sessionUI.on('feedback:error', function (error) {
console.log(error);
});
Callback arguments
-
error object
An object containing details about the error that occurred.
The following properties are supported.
-
code string
The error code.
-
name string
The error name.
-
message string
The error details.
-
cause string
The cause of the error.
-
doc string
A link to the documentation about the error.
-