1.

Record Nr.

UNINA9910831010903321

Autore

Mejia Alvarez Pedro

Titolo

Exception Handling : Fundamentals and Programming / / by Pedro Mejia Alvarez, Raul E. Gonzalez Torres, Susana Ortega Cisneros

Pubbl/distr/stampa

Cham : , : Springer Nature Switzerland : , : Imprint : Springer, , 2024

ISBN

3-031-50681-2

Edizione

[1st ed. 2024.]

Descrizione fisica

1 online resource (121 pages)

Collana

SpringerBriefs in Computer Science, , 2191-5776

Disciplina

005.1

Soggetti

Software engineering

Computer programming

Software Engineering

Programming Techniques

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Nota di bibliografia

Includes bibliographical references.

Nota di contenuto

Preface -- 1 Introduction to Exception Handling -- 2 Basics of Exception Handling -- 3 Exception Handling Best Practices -- 4 Advanced Exception Handling Techniques -- 5 Exception Handling in Real-Time and Embedded Systems.

Sommario/riassunto

This book presents the fundamentals of exception handling with examples written in C++ and Python. Starting with its history and evolution, it explores the many facets of exception handling, such as its syntax, semantics, challenges, best practices, and implementation patterns. The book is composed of five chapters: Chapter 1 provides an introduction, covering the history, various definitions, and challenges of exception handling. Chapter 2 then delves into the basics, offering insights into the foundational concepts and techniques. Subsequently, chapter 3 touches upon the best practices for exception handling, including the differences between errors and exceptions, the use of assertions, and how to provide meaningful error messages. Chapter 4 takes a deep dive into advanced exception-handling techniques, exploring e.g. patterns, guard clauses, and hierarchical exception handling. Eventually, chapter 5 focuses on the complexities of exception handling in real-time and embedded systems. This book is mainly written for both students and professionals. Its readers will



understand the nuances between syntax and semantic errors, learn how to employ try-catch blocks effectively, grasp the importance of logging exceptions, and delve into advanced exception-handling techniques. This way, they will be enabled to handle exceptions effectively and thus write more robust, reliable, and resilient code.