you can do that with "if" and "switch"
He wants to do for all actions, say if there is 100 actions, he must do IF action like for every action, so he is asking, is there a way, for automate, not by if and 1 by 1 action, its must look like, you got error, template see where is the error and go to that error. For not doing if for every action.
PS. There is any C# that could find errors by id and save them, but how to go them, i dont know