Forum Discussion
tristaanogre
Esteemed Contributor
I created a very quick little "throw" routine in JavaScript that I call within my keyword tests (since a "throw" doesn't exist as a default action). The "Catch" in the KeywordTests then has the option of trapping the data from the "throw" so you can then use it in the catch block. Perhaps that will help.
RUDOLF_BOTHMA
6 years agoCommunity Hero
I like the idea. Something like this ?
function ThrowException(message) { try { throw message; } catch(e) { throw e; } }
I would prefer if I could get the function's message back as value, rather than TCs Exception occurred and not sure how to get hold of that.