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

Yeah, I have gone through with reframework but im unable to add that in my workflow