Hi All,
I am trying to capture the exceptions that happened in the contributing booking and display them in the logging of the main booking during the pre-roll event. But what I get is the generic exception - 'The reservation was transitioned to Failed State'. Please see the attached screenshot.
The screenshot below is how I capture the above exception from the main booking LSO script.
Below is the actual exception from the contributing booking that I want to capture.
Is there a way to capture the actual exception that is being thrown from the contributing booking?
Thanks!
Hi Jason,
In the LSO script of the contributing reservation you need use the method AutomationScript.HandleException(engine, exception); in your catch block so the main is informed of what error happened.
You should now see the correct error in the log file no?
In the script itself, currently is not possible to get the correct exception.
You are using method ApplyContributingState correct?
Hi Jason, as discussed currently is not possible to have what you want, it needs a new feature request for that.
Hi Jorge, thank you for your time. We will create a new feature request.
Hi Jorge,
Thank you for your response. I added AutomationScript.HandleException(engine, e); to my contributing LSO, but I'm still encountering the same exception in my main LSO. Is there something else I should be doing in the main LSO besides just catching the exception? For example, should I be calling AutomationScript.GetResultException()?