Tag

Custom Exceptions

0 views collected around this technical thread.

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.

Custom ExceptionsError ManagementException Handling
0 likes · 19 min read
Mastering Exception Handling in FastAPI: Strategies, Patterns, and Code
Test Development Learning Exchange
Test Development Learning Exchange
Apr 14, 2025 · Backend Development

Encapsulating Custom Exceptions and Logging in an API Automation Framework

This article explains how to improve the stability and maintainability of API automated tests by defining custom exception classes, wrapping a Loguru‑based logger, and integrating both into request utilities and pytest test cases with clear code examples.

API TestingBackendCustom Exceptions
0 likes · 6 min read
Encapsulating Custom Exceptions and Logging in an API Automation Framework
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.

AOPCustom ExceptionsException Handling
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.

AOPBackendCustom Exceptions
0 likes · 29 min read
Understanding Java Exception Handling: Classification, Bytecode Analysis, Best Practices, and Custom Exceptions