Closed eplazaso closed 5 years ago
This will throw an error that contains the UMS notification payload that caused the exception. This is necessary for error handling and investigation when the UMS events don't contain the expected data or some information is missed.
You have duplicated code (that was before) but if changing why not put in one function?
try { msg = Transformer[msg.type](msg, this); }catch(error) { throw new TransformError(error, msg); }
This will throw an error that contains the UMS notification payload that caused the exception. This is necessary for error handling and investigation when the UMS events don't contain the expected data or some information is missed.