Subj : Re: Error handling To : Braden McDaniel From : Brendan Eich Date : Mon Aug 04 2003 10:01 pm Braden McDaniel wrote: > Sorry... I got distracted by other things. I'm now getting back to this. > > I've gone through the SpiderMonkey code to see how it uses exceptions. > I don't see how errors defined in *my* js.msg file get mapped to > exceptions. The logic that maps error definitions to exception types in > jsexn.c (js_ErrorToException) seems tied to the SpiderMonkey js.msg. What > am I missing? Nothing. js_ErrorToException is not an API, it's a function internal to the engine. Sorry, I didn't see what you want: you want a way to report errors of your own number and (localizable) message string, and have them turn into exceptions. It seems that the errors-as-exceptions design in the engine doesn't support that. Can you file a bug? Thanks, /be .