var Norkpalm_Error = function(message) { this.message = message; this.code = null; this.stack = (new Error()).stack; }; Norkpalm_Error.prototype = new Error();