Tagged articles
36 articles
Page 1 of 1
Architecture Digest
Architecture Digest
Aug 19, 2025 · Backend Development

Refactor Spring Controllers for Unified Responses and Robust Validation

This article explains how to refactor Spring MVC controllers by introducing a unified response wrapper, handling String conversion issues with ResponseBodyAdvice, configuring message converters, applying JSR‑303 validation, creating custom validators and exceptions, and centralizing error handling for cleaner, more maintainable backend code.

exception-handlingresponse-body-advicespring-boot
0 likes · 17 min read
Refactor Spring Controllers for Unified Responses and Robust Validation
php Courses
php Courses
Apr 11, 2025 · Fundamentals

Handling Exceptions When Processing CSV and JSON Files in Python

This article explains how to use Python's try‑except and with statements to safely read and process CSV and JSON files, covering common errors such as missing files, permission issues, format problems, and providing best‑practice examples for robust error handling.

CSVJSONexception-handling
0 likes · 7 min read
Handling Exceptions When Processing CSV and JSON Files in Python
Code Ape Tech Column
Code Ape Tech Column
Feb 5, 2025 · Backend Development

Handling Exceptions in Java ThreadPool: submit vs execute and Custom Solutions

This article explains why exceptions submitted to a Java thread pool via submit are silent, how to retrieve them using Future.get(), compares submit and execute behaviors, and presents three practical solutions—including try‑catch, Thread.setDefaultUncaughtExceptionHandler, and overriding afterExecute—to reliably capture and process thread pool errors.

FutureafterExecuteexception-handling
0 likes · 14 min read
Handling Exceptions in Java ThreadPool: submit vs execute and Custom Solutions
php Courses
php Courses
Jan 7, 2025 · Backend Development

Using the throw Keyword for Exception Handling in PHP

This article explains PHP's throw keyword, covering exception fundamentals, the try‑catch mechanism, the exception class hierarchy, and provides detailed code examples demonstrating how to throw and handle both built‑in and custom exceptions for robust error management.

BackendThrowcode-example
0 likes · 5 min read
Using the throw Keyword for Exception Handling in PHP
php Courses
php Courses
Jan 3, 2025 · Backend Development

Effective Exception Handling in PHP for Robust Applications

This article explains why proper exception handling is essential for building robust PHP applications, covering the advantages of exceptions over error codes, how to throw, catch, and create custom exceptions, set up global handlers, convert errors to exceptions, and log them effectively.

Backendcustom-exceptionerror-management
0 likes · 7 min read
Effective Exception Handling in PHP for Robust Applications
php Courses
php Courses
Nov 22, 2024 · Backend Development

Optimizing Exception Handling in PHP: Best Practices

This article explains how PHP developers can improve code stability and maintainability by using try‑catch blocks, creating custom exception classes, employing multiple catch clauses, adding finally blocks, and leveraging additional functions like throw and set_exception_handler, providing clear examples for each technique.

Error Handlingcustom-exceptionexception-handling
0 likes · 5 min read
Optimizing Exception Handling in PHP: Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Nov 20, 2024 · Backend Development

Implementing Unified Functionality in Spring with Interceptors, AOP, Exception Handling, and Response Formatting

This article explains how to use Spring's HandlerInterceptor to implement common cross‑cutting concerns such as user login validation, unified exception handling, and standardized JSON response formats, comparing it with Spring AOP and providing step‑by‑step code examples and configuration details.

InterceptorMVCexception-handling
0 likes · 18 min read
Implementing Unified Functionality in Spring with Interceptors, AOP, Exception Handling, and Response Formatting
Satori Komeiji's Programming Classroom
Satori Komeiji's Programming Classroom
Nov 11, 2024 · Fundamentals

How Does the Python VM Capture Exceptions?

The article explains Python's exception handling implementation, detailing how the virtual machine executes try/except/else/finally blocks, the bytecode instructions generated for each clause, the static exception table used for fast dispatch, and the effects of return and del statements on control flow and object lifetimes.

Pythonbytecodeexception-handling
0 likes · 19 min read
How Does the Python VM Capture Exceptions?
Test Development Learning Exchange
Test Development Learning Exchange
Oct 27, 2024 · Fundamentals

Fundamental and Advanced Exception Handling in Python

This article presents a comprehensive guide to Python exception handling, covering basic try‑except usage, multiple exception capture, else/finally clauses, custom exceptions, exception chaining, logging, context managers, assertions, traceback, concurrent and asynchronous error handling, and testing techniques.

asyncioconcurrencyexception-handling
0 likes · 8 min read
Fundamental and Advanced Exception Handling in Python
Architect's Tech Stack
Architect's Tech Stack
Oct 13, 2024 · Backend Development

Should try‑catch be placed inside or outside a for loop?

This article discusses whether a try‑catch block should be placed inside or outside a Java for‑loop, explains the trade‑offs, and provides code examples illustrating both approaches to help developers write more robust exception‑handling logic.

Backendbest-practicesexception-handling
0 likes · 4 min read
Should try‑catch be placed inside or outside a for loop?
Cognitive Technology Team
Cognitive Technology Team
Sep 16, 2024 · Fundamentals

Handling Uncaught Exceptions in Java Threads

This article explains how Java handles uncaught exceptions in threads, demonstrates setting per‑thread, thread‑group, and global exception handlers, and provides complete code examples illustrating each approach along with their execution results.

exception-handlinguncaught-exception
0 likes · 5 min read
Handling Uncaught Exceptions in Java Threads
Test Development Learning Exchange
Test Development Learning Exchange
Jul 25, 2024 · Fundamentals

The Art of Exception Handling in Python: Using raise...from

This article explains how Python's raise...from statement can be used to link exceptions, providing clear examples that demonstrate basic usage, function integration, file handling, multi‑level chaining, network errors, class methods, database queries, serialization, loops, and decorators to improve error reporting and debugging.

Error Handlingexception-handlingprogramming
0 likes · 7 min read
The Art of Exception Handling in Python: Using raise...from
Python Programming Learning Circle
Python Programming Learning Circle
Mar 19, 2024 · Fundamentals

20 Essential Python Exception Handling Techniques

This article presents twenty practical Python exception‑handling techniques, ranging from basic try‑except‑finally blocks to custom exception classes, context‑manager suppression, traceback formatting, and generator cleanup, enabling developers to write more robust, readable, and Pythonic error‑management code.

best-practicescodingerror-management
0 likes · 11 min read
20 Essential Python Exception Handling Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Jan 14, 2024 · Fundamentals

Using pdb and ipdb Interactive Debuggers in Python

This article introduces Python's interactive debuggers pdb and ipdb, demonstrating how to set breakpoints, step through code, inspect variables, handle exceptions, use conditional breakpoints, and perform remote debugging through concise code examples and command explanations.

Pdbdebuggingexception-handling
0 likes · 4 min read
Using pdb and ipdb Interactive Debuggers in Python
Tencent Cloud Developer
Tencent Cloud Developer
Dec 6, 2023 · Backend Development

Exception Handling in Software Development: A Comprehensive Analysis

The article systematically distinguishes unrecoverable errors from recoverable exceptions and surveys five major handling strategies—global error codes, return‑value conventions, parameter‑based collectors, language‑level exception mechanisms, and OS‑level support—concluding that the optimal approach depends on performance constraints, code‑base design, and portability requirements.

CoroutinesError HandlingProgramming Paradigms
0 likes · 47 min read
Exception Handling in Software Development: A Comprehensive Analysis
Top Architect
Top Architect
Aug 27, 2022 · Backend Development

Spring Retry and Guava Retry Frameworks: Concepts, Configuration, and Practical Code Examples

This article provides a comprehensive guide to using Spring Retry and Guava Retry in Java applications, covering dependency setup, basic and annotation-based usage, various retry and back‑off policies, code examples, and a comparison of both frameworks to help developers implement robust retry mechanisms.

Retrybackoff-policyexception-handling
0 likes · 15 min read
Spring Retry and Guava Retry Frameworks: Concepts, Configuration, and Practical Code Examples
Programmer DD
Programmer DD
Aug 18, 2022 · Backend Development

How to Build a Clean, Robust Spring Controller Layer with Unified Responses and Validation

This article explains why the Controller layer is essential, identifies common pitfalls such as tangled validation and inconsistent responses, and demonstrates how to refactor Spring MVC controllers using a unified Result wrapper, ResponseBodyAdvice, proper String handling, JSR‑303 validation, custom validators, and global exception handling to produce clean, maintainable backend code.

BackendControllerexception-handling
0 likes · 21 min read
How to Build a Clean, Robust Spring Controller Layer with Unified Responses and Validation
Python Programming Learning Circle
Python Programming Learning Circle
Jun 9, 2022 · Fundamentals

Python Interview Questions and Answers: Memory Management, Lambda, List Operations, Exceptions, and More

This article presents a collection of common Python interview questions covering memory management mechanisms, lambda functions, tuple/list conversion, duplicate removal techniques, sorting tricks, object copying methods, exception handling, the pass statement, range usage, regex operations, match vs search differences, and random number generation, each accompanied by clear explanations and code examples.

Listexception-handlingmemory-management
0 likes · 10 min read
Python Interview Questions and Answers: Memory Management, Lambda, List Operations, Exceptions, and More
Java Architect Essentials
Java Architect Essentials
May 19, 2022 · Fundamentals

Using Java 8 Functional Interfaces to Replace if…else Branches

This article explains how Java 8's functional interfaces such as Function, Supplier, Consumer, and Runnable can be used to eliminate repetitive if…else statements, providing concrete interface definitions and utility methods with full code examples for exception handling, branch processing, and present‑or‑else logic.

exception-handlingfunctional-interfacejava
0 likes · 6 min read
Using Java 8 Functional Interfaces to Replace if…else Branches
Python Programming Learning Circle
Python Programming Learning Circle
May 7, 2022 · Fundamentals

Using Tenacity: A Python Retry Library – Installation, Unlimited Retries, Stop Conditions, Intervals, and Logging

This article introduces the Tenacity Python library, explains how to install it, and demonstrates various retry strategies such as unlimited retries, stopping after success, limiting attempts or time, combining stop conditions, setting fixed or random wait intervals, and adding pre‑ and post‑retry logging with complete code examples.

BackoffRetrycode-example
0 likes · 5 min read
Using Tenacity: A Python Retry Library – Installation, Unlimited Retries, Stop Conditions, Intervals, and Logging
Architect
Architect
Nov 29, 2021 · Backend Development

Common Scenarios Where Spring Transactions Fail and How to Fix Them

This article explains why Spring's @Transactional annotation can silently fail in many typical situations—such as incorrect method visibility, final methods, self‑invocation, unmanaged beans, multithreading, non‑transactional tables, missing configuration, wrong propagation or rollback settings, nested transaction behavior, and oversized transaction scopes—and provides practical solutions to ensure reliable transaction management.

aopexception-handlingspring
0 likes · 16 min read
Common Scenarios Where Spring Transactions Fail and How to Fix Them
Programmer DD
Programmer DD
Aug 13, 2021 · Backend Development

How to Debug and Resolve 400 Errors in Spring MVC

This article explains how Spring MVC processes HTTP 400 errors, walks through the DispatchServlet and exception‑handling flow, shows key code snippets, and provides practical ways to implement global or custom exception resolvers to handle common 400‑causing exceptions.

400-errorBackendexception-handling
0 likes · 7 min read
How to Debug and Resolve 400 Errors in Spring MVC
Selected Java Interview Questions
Selected Java Interview Questions
Jan 11, 2021 · Backend Development

Best Practices for Exception Handling in Java

This article presents nine essential Java exception handling best practices, including using finally blocks or try‑with‑resources for resource cleanup, specifying precise exception types, documenting throws clauses, providing descriptive messages, catching specific exceptions first, avoiding catching Throwable, not ignoring exceptions, and correctly wrapping exceptions without losing the original cause.

best-practicesexception-handlinglogging
0 likes · 10 min read
Best Practices for Exception Handling in Java
Python Crawling & Data Mining
Python Crawling & Data Mining
Sep 27, 2020 · Backend Development

Mastering Elegant Retry Logic in Python with Tenacity

This article explains why retry mechanisms are essential for unstable network requests, introduces the Tenacity library, and provides clear, step‑by‑step Python examples covering basic retries, stop conditions, conditional retries, exception re‑raising, and callback handling.

BackendCode ExampleRetry
0 likes · 7 min read
Mastering Elegant Retry Logic in Python with Tenacity
Programmer DD
Programmer DD
Sep 24, 2020 · Fundamentals

Mastering Java Exceptions: From Basics to Best Practices

This article provides a comprehensive guide to Java exception handling, covering the exception hierarchy, key keywords, common pitfalls, interview questions, and a set of best‑practice recommendations to write robust, maintainable Java code.

Error Handlingbest-practicesexception-handling
0 likes · 35 min read
Mastering Java Exceptions: From Basics to Best Practices
Qunar Tech Salon
Qunar Tech Salon
May 24, 2019 · Backend Development

Why Dubbo Wraps Custom Exceptions into RuntimeException and How to Fix It

The article explains Dubbo's exception‑filter mechanism, demonstrates with a HelloException example why a custom RuntimeException is wrapped into a generic RuntimeException on the consumer side, analyzes the source code logic that decides when to re‑throw or wrap exceptions, and offers practical ways to avoid this pitfall in real projects.

BackendRPCexception-handling
0 likes · 9 min read
Why Dubbo Wraps Custom Exceptions into RuntimeException and How to Fix It