Subj : Re: Exceptions/Errors/Line Numbers To : Peter Wilson From : Brendan Eich Date : Thu Jun 30 2005 11:08 am Peter Wilson wrote: > Brian Barnes wrote: >> >> The problem: When I make an exception, I don't get the line numbers >> and other information. I want to be able (in C) to construct a >> exception like the engine itself does, so I can have the line numbers >> where it occurred. Calling: >> >> JS_ReportError(cx,"my error text"); >> >> Doesn't work, as it's not an exception (maybe this is my problem, and >> I don't understand this correctly.) So, what solutions do I have? Brian is running into https://bugzilla.mozilla.org/show_bug.cgi?id=215173 -- the APIs and underlying code have design flaws that prevent you from extending the set of built-in errors-as-exceptions. That's something I would like to fix, but I don't have time. Perhaps someone else will take that bug -- I'll give advice and review. /be .