Exception Handling Mechanisms in Python: A Comprehensive Study

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.

Authors

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-11-07
DOI
https://doi.org/10.5281/zenodo.24033317
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Exception Handling Mechanisms in Python: A Comprehensive Study

Harisharanappa S. Padsalgi
Zenodo (CERN European Organization for Nuclear Research)
Logic, programming, and type systems
article

Exception Handling Mechanisms in Python: A Comprehensive Study

Harisharanappa S. Padsalgi
article en

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.

Zenodo (CERN European Organization for Nuclear Research)
Openalex Percentile: Top 10%
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon