Script Fail

Gisela January 21, 2013

Hi, is there a way to capture if the script fail and send a email to the user?

Like the error below:

2013-01-15 15:57:52,398 http-8080-3 ERROR wallace.qld.shop 957x311891x1 uy5cz0 10.0.0.10 /secure/CommentAssignIssue.jspa [onresolve.jira.groovy.GroovyFunctionPlugin] Error executing post-function

javax.script.ScriptException: javax.script.ScriptException: java.sql.SQLException: Network error IOException: Connection refused

2 answers

1 accepted

0 votes
Answer accepted
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 21, 2013

Wrap stuff in a try/catch block... you can do what you want in the catch block.

Doesn't sound like suitable content for an end user though... the person that wrote the script should add exception-handling appropriate to what the exceptional case is...

0 votes
Gisela January 21, 2013

Is this case, I don t have have anything to do, because the error is a connecting with another tool we use, I will use the try catch in the connectiong, thanks.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events