0 Replies Latest reply on Oct 26, 2005 12:25 AM by Andy Yeung

    Task Controller Interface

    Andy Yeung Newbie

      Users can implement the TaskControllerHandler to applied custom formatting before returning the data to user interface. When I try to implement the interface, some of the function I use may throw exceptions. But I don't have way to pass the error to user interface because the interface don't throw exception.

      The default one-one mapping handling won't trigger any code that may throw exception. In custom handler, it is not the same case. I wonder if there is any reason for setting the getTaskFormParameters and submitParameters method without throws Exception declared. In other interface such as ActionHandler, methods in there are allowed to throws Exception.

      I would like to know is there any way to inform the frontend what error has occured. Or do I need to modify the TaskControllerHandler interface?
      Or do I need to wrap those exception thrown as RuntimeException?