graph error catching