UNPKG

diffusion

Version:

Diffusion JavaScript client

16 lines (10 loc) 307 B
function Exception(message, prev) { var self = this; this.value = new Error(message); this.toString = function() { var value = self.value; return prev ? value.toString() + '\n' + prev.toString() : value.toString(); }; } module.exports = Exception;