Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
try {
    runAs("user_that_does_not_exist");
} catch string err {
     // will not catch error here
} catch {
    runnerLog("Class:" + lastExceptionClass());
     runnerLog("Message:" + lastExceptionMessage());
}

Output is contents of last error message similar to below:

Code Block
languagejs
Class: com.keplerrominfo.sil.lang.SILInfoException
Message: [SIL Error on line: 2, column: 9] User user_that_does_not_exist does not exist.

...