@bestapps/voice-framework
Version:
Voice Framework
24 lines (20 loc) • 394 B
JavaScript
;
let Event = require('./event');
/**
* Occurs when Request got from 3rd party provider
*/
class ErrorEvent extends Event {
constructor(data = {}){
super('onError', data);
}
/**
* @returns {Event}
*/
getEvent(){
return this.getData().event;
}
getError(){
return this.getData().err;
}
}
module.exports = ErrorEvent;