Trycatch throw java exception


Is it possible to throw a java exception (i.e. a java object) and catch it in flow, rather than just a text string?

I have looked at, but this logs a message, which I don’t really want.


to indicate a failure status in Sequence just throw ServiceException like

catch (Exception ecp)
throw new ServiceException (ecp.toString());

It would help if you could describe what you are trying to accomplish.