Posted: Mon Feb 27, 2023 1:55 am Post subject: ACE 12 Throw exception with same initial ExceptionList tree
Newbie
Joined: 07 Nov 2022 Posts: 3
Hello everyone,
Is it possible to throw an exception with the same ExceptionList tree as before?
I am asking this because I'm using a Try Catch node to ignore certain errors and continue with the logic, otherwise I will need to trigger an exception with the exact same ExceptionList tree as it was originally created by the error scenario itself.
Posted: Mon Feb 27, 2023 4:25 pm Post subject: Re: ACE 12 Throw exception with same initial ExceptionList t
Newbie
Joined: 26 Oct 2021 Posts: 5
AIIBA wrote:
Hello everyone,
Is it possible to throw an exception with the same ExceptionList tree as before?
I am asking this because I'm using a Try Catch node to ignore certain errors and continue with the logic, otherwise I will need to trigger an exception with the exact same ExceptionList tree as it was originally created by the error scenario itself.
All the best!
In short no, you cannot do that with a try catch. Common practice is to parse the exception tree, extract the useful information and throw a new exception with the relevant information.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum