Resume after Exception

Monkey Forums/Monkey Programming/Resume after Exception

Shinkiro1(Posted 2013) [#1]
Can I resume my app after an exception is thrown?

Edit:
My specific requirement is this:
I have a script class that throws an exception when it finds a syntax error.
Normally it's ok that this crashes the game and gives me an appropriate error message.

But when I am in an editor like environment I don't want it to crash the whole editor.
In that case I just want it to output the error message to the screen and continue execution.

Now I know I can hack this in there with flags or default parameters but I wondered if I could use exceptions for this.


Shinkiro1(Posted 2013) [#2]
Ok, resolved it. Yes you can resume execution afterwards.
I always just wrapped the script.Run() Method in the try catch block, but the script.Load() was actually throwing the exception.
Also every exception my ScreenManager catches will use Error(), maybe gonna change that.

PS: An ingame console is really neat for development.