Work

Exception Handling Mechanisms in Python: A Comprehensive Study

Year: 2026
Type: article
Abstract: Exception handling is an important feature of modern programming languages that helps programmers manage runtime errors without abruptly terminating their execution and maintain the normal execution of programs. Python provides a simple and powerful exception-handling mechanism to detect and handle errors effectively. Errors such as division by zero, invalid input, file-not-found errors and type errors may interrupt the execution of a program. Python uses different keywords such as try, except, else, finally and raise to handle these situations. This paper presents a comprehensive study of exception handling mechanisms in Python programming. It explains built-in exceptions, multiple exception handling, user-defined exceptions and practical applications. The paper also discusses the importance of exception handling in developing reliable, readable and maintainable software applications. The study highlights the role of proper exception handling in improving program reliability and preventing unexpected program termination.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W7225452911
FWCI:
Cites:
Cited by:
Related to: 10