Already found solition here https://groups.google.com/d/topic/nodejs/MdS52Dhc0N4/discussion
2012/10/20 Denys Khanzhiyev <[email protected]> > With following code > > var > util = require('util'); > > function err1(){ > Error.call(this,arguments); > } > > err1.prorotype = Error.prototype; > > > function err2(){ > > } > > err2.prorotype = Error.prototype; > > > function err3(){ > Error.call(this,arguments); > } > util.inherits(err3,Error); > > > var > e0 = new Error('zz'), > e1 = new err1('z1'), > e2 = new err2('z2'), > e3 = new err3('z3'); > > console.log(e0.stack); > console.log(e1.stack); > console.log(e2.stack); > console.log(e3.stack); > > > Only e0.stack is defined > > I want stack in my error object. > > Regards, > Denys > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
