Tagged articles
17 articles
Page 1 of 1
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 17, 2026 · Backend Development

8 Must‑Use Spring Boot Code Snippets to Stop Re‑inventing the Wheel

This article presents eight ready‑to‑use Spring Boot 3.5.0 code snippets—including MapStruct converters, embeddable collections, i18n helpers, secure random generators, custom runtime exceptions, type‑safe configuration properties, JPA auditing, and custom validation annotations—each illustrated with concrete examples and runnable code.

Spring Bootconfiguration-propertiescustom-exception
0 likes · 13 min read
8 Must‑Use Spring Boot Code Snippets to Stop Re‑inventing the Wheel
php Courses
php Courses
Sep 2, 2025 · Fundamentals

Why and How to Create Custom Exceptions in C++ for Robust Error Handling

This article explains why custom exceptions are essential for clear, domain‑specific error reporting in C++, shows step‑by‑step how to define them by inheriting from standard exception classes, provides practical code examples, and outlines best practices for designing maintainable exception hierarchies.

Cbest practicescustom-exception
0 likes · 8 min read
Why and How to Create Custom Exceptions in C++ for Robust Error Handling
Java Captain
Java Captain
Mar 18, 2025 · Backend Development

Refactoring Spring MVC Controllers: Unified Response Structure, Parameter Validation, and Centralized Exception Handling

This article explains how to refactor the Spring MVC Controller layer by standardizing response structures, implementing unified response wrapping via ResponseBodyAdvice, handling String conversion issues, applying JSR‑303 parameter validation, creating custom validation rules, and defining custom exceptions with centralized exception handling to simplify controller code.

ControllerJavaParameter Validation
0 likes · 17 min read
Refactoring Spring MVC Controllers: Unified Response Structure, Parameter Validation, and Centralized Exception Handling
Code Mala Tang
Code Mala Tang
Feb 10, 2025 · Fundamentals

Master Python Exception Handling and Logging: Practical Guide with Code

This article explains why robust exception handling and logging are essential in Python development, introduces built‑in exception types, demonstrates try‑except‑else‑finally patterns, shows how to use assert and raise, creates custom exceptions, and provides practical logging examples with code snippets.

DebuggingException Handlingcustom-exception
0 likes · 12 min read
Master Python Exception Handling and Logging: Practical Guide with Code
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
Test Development Learning Exchange
Test Development Learning Exchange
Jun 11, 2024 · Fundamentals

Comprehensive Guide to Python Exception Handling

This article explains Python exception handling fundamentals, covering basic try‑except, multiple exception catches, else/finally blocks, custom exceptions, exception propagation, raise‑from chaining, context manager handling, assert statements, generic suppression, and selective suppression with contextlib.

AssertException Handlingcontext manager
0 likes · 4 min read
Comprehensive Guide to Python Exception Handling
Java Captain
Java Captain
Mar 25, 2024 · Fundamentals

Understanding Exception Handling in Java SE

This article provides a comprehensive guide to Java SE exception handling, covering the concepts and classifications of checked and unchecked exceptions, the try‑catch‑finally structure, custom exception creation, exception chaining, and best‑practice recommendations for writing robust, maintainable Java code.

Exception HandlingJavabest practices
0 likes · 6 min read
Understanding Exception Handling in Java SE
Java Backend Technology
Java Backend Technology
Feb 17, 2023 · Backend Development

Master Global Exception Handling in Spring Boot: A Complete Guide

This article explains how to create a unified response class, define custom exception and error‑enum types, and implement a global exception handler in Spring Boot, enabling clean error handling, reduced boilerplate, and flexible business‑specific extensions.

AjaxResultBackend DevelopmentError Enum
0 likes · 6 min read
Master Global Exception Handling in Spring Boot: A Complete Guide
Alibaba Cloud Native
Alibaba Cloud Native
Dec 19, 2022 · Cloud Native

How Dubbo 3.0 Enables Custom Exceptions with the Triple Protocol

This article explains how Dubbo 3.0’s Triple RPC protocol now supports custom exception serialization, detailing the original exception handling flow, the limitations of header‑based error transport, and the proposed TripleWrapper‑Protobuf solution for reliable client‑side error capture.

Cloud NativeJava RPCcustom-exception
0 likes · 12 min read
How Dubbo 3.0 Enables Custom Exceptions with the Triple Protocol
Java High-Performance Architecture
Java High-Performance Architecture
Jun 16, 2022 · Backend Development

Mastering Custom Exception Handling in Spring Boot: A Complete Guide

This article walks through Spring Boot's default error mapping, shows how to return JSON for AJAX requests and HTML pages for browsers, and provides step‑by‑step code for creating custom exception classes, an error response entity, a Freemarker error template, and a global @ControllerAdvice handler with detailed configuration and testing examples.

Exception HandlingGlobal ExceptionJava
0 likes · 15 min read
Mastering Custom Exception Handling in Spring Boot: A Complete Guide
FunTester
FunTester
Jun 4, 2020 · Backend Development

Mastering Custom Exceptions in Java: A Step‑by‑Step Guide

This tutorial explains how to define, implement, and throw custom Java exceptions, providing complete example code, step‑by‑step creation instructions, and a practical demo that integrates the custom exception into a JSON‑processing method.

Backend DevelopmentException HandlingJava
0 likes · 4 min read
Mastering Custom Exceptions in Java: A Step‑by‑Step Guide
MaGe Linux Operations
MaGe Linux Operations
Jan 11, 2019 · Fundamentals

Master Python Exception Handling: From Basics to Custom Errors

This article provides a comprehensive guide to Python exception handling, covering the concept of exceptions, common exception types, raising and re‑raising errors, using assert, the full try‑except‑else‑finally workflow, catching multiple exceptions, creating custom exception classes, retrieving exception information with as, and leveraging the traceback module for debugging.

AssertException HandlingPython
0 likes · 9 min read
Master Python Exception Handling: From Basics to Custom Errors
Programmer DD
Programmer DD
Jul 3, 2018 · Backend Development

Master Java Exception Handling in Spring MVC: Custom Exceptions & Global Advice

This article explains how to design and implement robust Java exception handling for business systems using Spring MVC, covering when to create custom exceptions, how to structure service and controller code, and how to centralize error responses with @ControllerAdvice for clean, maintainable backend development.

Backend DevelopmentControllerAdviceException Handling
0 likes · 13 min read
Master Java Exception Handling in Spring MVC: Custom Exceptions & Global Advice
Java Captain
Java Captain
May 4, 2018 · Fundamentals

Understanding Exception Handling in Java

This article explains Java's exception handling mechanism, covering try‑catch‑finally structures, the distinction between checked and unchecked exceptions, practical code examples for file I/O and custom exceptions, and best‑practice guidelines for designing robust error‑handling logic.

Exception HandlingJavacustom-exception
0 likes · 9 min read
Understanding Exception Handling in Java