design algorithms to detect, intercept, and handle exceptions (e.g., division by zero, roots of negatives).