Bug Throw exceptions

Discussion in 'Developer Support' started by Era, Oct 14, 2015.

  1. Hi.

    I want to throw an exception so I get notified in the developer panel if something goes wrong with my script bot.
    However, it seems that it's not possible to throw an Exception in Task#execute.


    I just want to throw it and make it stop the script bot, so the dialog pops-up with the information that an exception happened. (The built-in dialog)
    What should I do in order to achieve this?
  2. Answer below. :p
  3. Replace Exception with RuntimeException and you're good to go.
    Defeat3d likes this.
  4. Thanks, it works! :)
  5. OK, TIL.

Share This Page