|
From: John L. <je...@pi...> - 2001-08-29 21:17:31
|
"Todd L. Miller" wrote: > > > How do I create an instance of an error? It might be possible to create an > > error factory. An error factory would make it easier to construct different > > errors through a single method. > > > > How does the scheduler "know" that one of its threads has thrown an error? > > When an error is thrown, the message should be displayed prominently on the > > console, right? We need to know why it failed. > > You know, GCHII, these are very good questions. The design I had > (all interpreter methods take an exception reference to fill in -- should > have been Throwable, because of errors -- incidentally) was a Grade A hack > designed around jJOS not supporting C++ exceptions, which seem the natural > way to do things. I don't know what the right answer is; maybe Leuner has > a clue? In kissme/teaseme: As soon as an exception is thrown, the exception handler is invoked. In the case of a native method, these methods return -1 when an exception is thrown and store them in the context data for that thread. Did I understand the question correctly? John Leuner |