When implementing complex tactics in Ltac, there are some Ltac commands or tactical challenges that I expect to fail, and where this is expected (for example, to complete repeator to go back). These failures usually rise at failure level 0.
Failures raised at a higher level "exit" from the surrounding block tryor repeatare useful for reporting unexpected failures.
What I am missing is a way to start a tactic tacand handle its failure, even at level 0, at a higher level, saving the error message. This would allow me to make sure that it repeatdoes not end due to an Ltac programming error on my side.
Can I implement this higher order tactic at the failure level in Ltac?
source
share