How to throw an error message : createExceptionInfo() in IOperationParticipant : Server side plugin
Hello All,
I am developing a server side followup participant, where i need to restrict the user to add only tracks links to a particular WI. If not it should throw a message to the user.
How to set the createExceptionInfo() in IOperationParticipant
Code snippet :
Throwable exception = null;
IReportInfo createProblemInfo = ((IParticipantInfoCollector) collector).createExceptionInfo("Please add a defect workitem.", exception );
collector.addInfo(createProblemInfo);
return;
Please suggest on this.
I am developing a server side followup participant, where i need to restrict the user to add only tracks links to a particular WI. If not it should throw a message to the user.
How to set the createExceptionInfo() in IOperationParticipant
Code snippet :
Throwable exception = null;
IReportInfo createProblemInfo = ((IParticipantInfoCollector) collector).createExceptionInfo("Please add a defect workitem.", exception );
collector.addInfo(createProblemInfo);
return;
Please suggest on this.