You can access the stack (stacktrace in Opera) properties of an Error instance even if you threw it. The thing is, you need to make sure you use throw new Error(string) (don't forget the new instead of throw string.
Example:
vartry err{ = new Error, 0++; stacktrace} catch (e) { var myStackTrace = erre.stack || erre.stacktrace;stacktrace || ""; }