Tagged articles

custom exceptions

8 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
May 1, 2026 · Backend Development

Exception Handling Best Practices: From try‑catch to Custom Exceptions

This article explores Java exception handling from basic try‑catch‑finally syntax, through multi‑catch and try‑with‑resources, to designing custom business exceptions, offering concrete code examples, logging tips, global handlers, and performance considerations for robust backend development.

Javacustom exceptionsexception handling
0 likes · 18 min read
Exception Handling Best Practices: From try‑catch to Custom Exceptions
Code Mala Tang
Code Mala Tang
May 8, 2025 · Backend Development

Mastering Exception Handling in FastAPI: Strategies, Patterns, and Code

Learn how to design robust exception handling for FastAPI applications by combining Look‑Before‑You‑Leap and EAFP strategies, creating custom exception classes, organizing handlers, and integrating them into your API to improve maintainability, clarity, and error response consistency.

Backend DevelopmentFastAPIPython
0 likes · 19 min read
Mastering Exception Handling in FastAPI: Strategies, Patterns, and Code
php Courses
php Courses
Apr 14, 2025 · Fundamentals

Creating and Using Custom Exceptions in Python

This article explains why custom exceptions are needed in Python, shows how to define them—including simple, information‑rich, and subclassed variants—provides practical code examples such as inventory‑shortage and API‑request errors, and outlines best practices for naming, documentation, and inheritance.

Error DesignPythonbest practices
0 likes · 6 min read
Creating and Using Custom Exceptions in Python
macrozheng
macrozheng
May 30, 2023 · Backend Development

Mastering Java Exception Handling: From Basics to Advanced Practices

This article explores Java's exception hierarchy, demonstrates proper use of try‑catch‑finally and return statements, shows how to define custom system, business, and third‑party exceptions, implements global handling with @RestControllerAdvice, and discusses monitoring and alerting strategies for robust backend development.

AOPJavacustom exceptions
0 likes · 15 min read
Mastering Java Exception Handling: From Basics to Advanced Practices
Wukong Talks Architecture
Wukong Talks Architecture
Mar 21, 2023 · Backend Development

Understanding Java Exception Handling: Classification, Bytecode Analysis, Best Practices, and Custom Exceptions

This article provides a comprehensive guide to Java exception handling, covering exception categories, bytecode‑level mechanisms, common pitfalls, Alibaba’s coding standards, best‑practice recommendations, custom exception design, and global handling strategies for RPC and HTTP services in Spring Boot.

AOPJavaSpring Boot
0 likes · 29 min read
Understanding Java Exception Handling: Classification, Bytecode Analysis, Best Practices, and Custom Exceptions
Alibaba Cloud Developer
Alibaba Cloud Developer
Mar 20, 2023 · Backend Development

Master Java Exception Handling: Best Practices, Bytecode Insights & Custom Exceptions

This comprehensive guide explores Java's exception handling mechanisms, classifies checked and unchecked exceptions, delves into bytecode analysis of try‑catch‑finally and try‑with‑resources, showcases common pitfalls, presents custom exception design patterns, and demonstrates global exception handling for RPC and HTTP layers in Spring Boot applications.

Spring Bootbest practicesbytecode
0 likes · 32 min read
Master Java Exception Handling: Best Practices, Bytecode Insights & Custom Exceptions