Hi
I am trying to catch Exceptions. How can I do that? In the code below, I can’t get to “//do something else”.
Example Livelink Exception stack
Caused by: javax.xml.ws.soap.SOAPFaultException: Incorrect SubWorkTask status.
at com.opentext.livelink.service.core.ExceptionUtil.throwSOAPFaultException(ExceptionUtil.java:138)
at com.opentext.livelink.service.workflowservice.WorkflowService_JAXWS.completeWorkItem(WorkflowService_JAXWS.java:739)
Code in my application to attempt to catch the exception
import com.opentext.livelink.service.workflowservice.WorkflowService;
public class MyClass
{
private WorkflowService workflowService;
public void MyMethod()
{
try {
workflowService.completeWorkItem();
} catch (Exception e)
{
//do something else
}
}
}
Thanks for your help in advance!