As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
If you want to implement the logic you described I would stick with choosing the sequence flow from the Java code based on the exception being thrown or not.