This tutorial would help you learn about error catching. Includes techniques for catching errors and exceptions.