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
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...
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.