Path: csiph.com!usenet.pasdenom.info!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!ALLTEL.NET-a2kHrUvQQWlmc!not-for-mail Message-ID: <52BDABFF.7080501@aisus.com> Date: Fri, 27 Dec 2013 10:34:07 -0600 From: MC User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 Newsgroups: comp.lang.javascript Subject: Re: Insert Function into Error Object References: <9dcb900f-eeca-432e-9410-10843e8d3f00@googlegroups.com> <2142308.9f43sPy3Wm@PointedEars.de> In-Reply-To: <2142308.9f43sPy3Wm@PointedEars.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com Lines: 20 X-Trace: f053452bdabea81e0f0829598 X-Received-Bytes: 1387 X-Received-Body-CRC: 3572779195 Xref: csiph.com comp.lang.javascript:22434 On 12/27/2013 10:24 AM, Thomas 'PointedEars' Lahn wrote: > Michael Haufe (TNO) wrote: > >> On Wednesday, December 25, 2013 8:48:48 PM UTC-6, MC wrote: >>> Also, I do not want to extend the Error object and throw myError objects. >> >> Why not? > > Depends on what is meant by that. Inheriting from Error.prototype and > calling Error from a user-defined constructor at least works well in JSX: > > > >> Another alternative is to shadow the Error object. > > Meaning? > > I second that...what is shadowing the Error object?