Throwing Exception from Java PX
I am relatively new to SDK and would like to know how an exception can be thrown from a Java Event PX. The below code in the try block fails with the error ” ActionResult code does not match result”:
return new EventActionResult (eventobject, new ActionResult(ActionResult.EXCEPTION, “Error message”));
Able to throw exception as below:
return new EventActionResult(eventobject,
new ActionResult(ActionResult.EXCEPTION, new Exception(“Error Message”)));