How to add the take screenshot in the workflow if ay error or exception occurs

No, not a single application.