roglesby
11 years agoOccasional Contributor
Groovy - Get Java Exceptions
I am looking for a way to capture java exceptions such as "Thu Sep 12 15:38:44 CDT 2013:ERROR:java.net.UnknownHostException: badurl.com" Stack track would be great but I am really looking to capture when it happens.
I am aware that the Error Logs show both the error and the stack track but is there anyway to capture the errors from a groovy teardown script.
I am intentionally trying to throw these errors so I want to capture them within the test script insted of the default error logs.
Thanks in advance.
I am aware that the Error Logs show both the error and the stack track but is there anyway to capture the errors from a groovy teardown script.
I am intentionally trying to throw these errors so I want to capture them within the test script insted of the default error logs.
Thanks in advance.