class MyException
{
function initialize() {}
}
If I throw this in the compute function of a data field, I get an error. Just as expected.
The next few lines of code however make the simulator crash:
class MyException
{
function initialize() {}
}
function compute(info)
{
test();
}
function test()
{
throw new MyException();
}
This is a simple example, but when you add some classes, functions and other stuff, this error makes things very confusing :S
Took me a couple of days to find out that this was what was happening.