Update Errors management
Created by: nicosang
Hi,
as discussed in berlin during face to face meeting, a work had to be done in order to update errors management. Until dash.js 3.0 version, both errors callbacks will remain in effect. Then, the previous wil be deleted. Main ideas of this new errors management are :
- only one function to trigger Error event :
ErrorHandler.error(err)
- this function have three parameters : error code, error message and data
- error code is unique for all dash.js, data is an specific object for a type of error
- error codes and messages are centralized in a file for each module : one for dash.js core, another for protection module and the last one for mss module. -bug fix for #2542 (closed)
Nico