Errors Handling and Types of Errors

Error Handling

Handling errors or exceptional conditions is a key part of any programming language. Even small scripts and programs should ideally be written with the ability to catch exceptions and handle them gracefully in an expected manner. In this chapter, we are going to delve deeper into types of errors and how to handle them. We will learn to throw, catch, and create custom errors.

Types of Errors

Generally, there are 3 types of errors: syntax, runtime, and logical errors. Let’s look into each of these errors one at a time.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy