Theoretical and practical aspects of exception handling in the C# programming language
full text

Keywords

exception handling mechanism, C# programming language, error handling, exceptions, types of exceptions.

How to Cite

[1]
A. GASNAS, “Theoretical and practical aspects of exception handling in the C# programming language”, ActaEd, vol. 40, no. 2, pp. 28-38, Jul. 2025.

Abstract

This article provides a detailed analysis of the try-catch-finally mechanism in the C# programming language, highlighting the functionality of each component and illustrating their applicability through relevant examples for various error-handling scenarios. It examines the conceptual and functional differences between general and specific exceptions, as well as the appropriate use of the throw statement for generating custom exceptions. Furthermore, the article addresses recommended principles and best practices in exception management, aiming to support the development of robust, predictable applications that align with modern programming quality standards.

https://doi.org/10.36120/2587-3636.v40i2.28-38
full text
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.