how to show custom error message to the user on exception while saving work item for operation participant
Hi,
I Developed an operation participant for setting the Iteration planned attribute to current iteration and when there is no current iteration for the timeline it should give a proper error message to the user.
I handled this using the following code snippet
collector.addInfo(collector.createInfo(
DefectIterationConstantsEnum.OPERATION_FAILED.getValue(),
DefectIterationConstantsEnum.NO_ITERATION.getValue()));
throw new TeamRepositoryException(
DefectIterationConstantsEnum.NO_ITERATION.getValue());
it is working fine but my concern is
The custom message is shown in the Team Advisor view but not beside the workitem name.
beside the work item name Im getting the following message
'Exception Running followup Action'
can this be done ?
Thanks
Surender
Comments
sam detweiler
Apr 20 '14, 8:25 a.m.I do not think you can provide a better message.
Surender Biyyala
Apr 20 '14, 4:20 p.m.Thanks sam for
but my concern is that i n the Team Advisor view it is showing as
Problem:
UnHandled exception
then my custom message
Reason :
here comes the description of my plugin.
I dont want the Unhandled exception message under the problem and under reason I want my custom message to be displayed but not the description.
My second concern is that cant we show the custom message just beside the workitem name instead of showing that in Team advisor view.
Surender Biyyala
Apr 21 '14, 2:54 p.m.we can do the following instead of throwing the TeamRepositoryException.