Hi, how can I pass an exception "upwards"?
that is, if I have
try
{
/* some code */
}
catch (id)
{
if (id == "something I throw")
{
/* I handle it */
}
else /* not my exception; I do not want to handle it but pass it outwards */
throw(id);
}
if I use the code as above, and I have a Squirrel error in the "some code" (like non-existent array index), the eventual error message from Squirrel would not be shown correctly (the line number would refer to the point of the second "throw", not the location of the real error).
Or there are other ways to control what exception is caught in the "catch () { }" code?
Thanks