Tagged articles
7 articles
Page 1 of 1
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 DevelopmentCustom ExceptionsException Handling
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.

Custom ExceptionsError DesignException Handling
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.

Custom ExceptionsException HandlingJava
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.

Custom ExceptionsException HandlingJava
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.

Custom ExceptionsException HandlingSpring Boot
0 likes · 32 min read
Master Java Exception Handling: Best Practices, Bytecode Insights & Custom Exceptions