Centene interview question

How would you handle errors in Java?