Tagged articles
396 articles
Page 4 of 4
Java Interview Crash Guide
Java Interview Crash Guide
Apr 8, 2021 · Backend Development

Why Does @Transactional Fail? Common Pitfalls and Fixes

This article explains the main reasons why Spring's @Transactional annotation may become ineffective—including non‑public method modifiers, internal method calls, and swallowed exceptions—provides code examples, test cases, and a deep dive into the underlying proxy and AOP mechanisms.

Exception HandlingJavaProxy
0 likes · 13 min read
Why Does @Transactional Fail? Common Pitfalls and Fixes
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 7, 2021 · Fundamentals

Mastering Java Exceptions: From Basics to Best Practices

This article provides a comprehensive overview of Java's exception architecture, detailing the hierarchy of Throwable, Error, and Exception, distinguishing checked and unchecked exceptions, explaining key keywords, and offering best practices with code examples for effective error handling.

Checked ExceptionsError HandlingException Handling
0 likes · 32 min read
Mastering Java Exceptions: From Basics to Best Practices
Intelligent Backend & Architecture
Intelligent Backend & Architecture
Apr 6, 2021 · Fundamentals

Master Java Exception Handling: From Basics to Best Practices

This article provides a comprehensive overview of Java's exception mechanism, covering the Throwable hierarchy, differences between Errors, Exceptions, checked and unchecked types, key keywords, practical code examples, and best‑practice guidelines for writing robust, maintainable Java code.

Checked ExceptionsErrorException Handling
0 likes · 34 min read
Master Java Exception Handling: From Basics to Best Practices
FunTester
FunTester
Feb 27, 2021 · Backend Development

A Tale of Inter‑Service Bugs and Exception Handling in Backend Development

The article recounts a real‑world scenario where two backend engineers discover that many bugs blamed on the B system actually stem from missing validation and exception handling in the A system, illustrated with pseudo‑code showing a try‑catch block that logs and returns a generic failure message.

Exception Handlingbug tracing
0 likes · 5 min read
A Tale of Inter‑Service Bugs and Exception Handling in Backend Development
QQ Music Frontend Team
QQ Music Frontend Team
Feb 26, 2021 · Mobile Development

Mastering Flutter Exception Handling, Gray Release, and Downgrade Strategies

This article summarizes Flutter exception types—including Dart, Engine, and Framework errors—explains how to capture them with try‑catch, Zone.runZoned, and FlutterError.onError, and details comprehensive gray‑release configurations, downgrade mechanisms, and operational metrics for maintaining reliable mobile experiences.

Exception Handlingdowngrade
0 likes · 9 min read
Mastering Flutter Exception Handling, Gray Release, and Downgrade Strategies
Java Backend Technology
Java Backend Technology
Feb 6, 2021 · Backend Development

Master Java Exception Handling: 10 Best Practices Every Developer Should Follow

This article explains why exception handling in Java is challenging and presents ten practical best‑practice guidelines—including using finally or try‑with‑resources, declaring specific exceptions, documenting throws, providing clear messages, catching specific exceptions first, avoiding Throwable, logging properly, and preserving original causes—to write more robust and maintainable code.

Exception HandlingJavabest practices
0 likes · 10 min read
Master Java Exception Handling: 10 Best Practices Every Developer Should Follow
Wukong Talks Architecture
Wukong Talks Architecture
Nov 26, 2020 · Backend Development

Step-by-Step Guide to Building PassJava with Spring Cloud Alibaba, Nacos, OpenFeign, Gateway, OSS Integration, and Unified Exception Handling

This tutorial walks through setting up the PassJava project, covering microservice architecture, service discovery with Nacos, remote calls via OpenFeign, API gateway configuration, OSS file storage integration, and centralized exception handling, providing detailed code examples and configuration steps for each component.

Exception HandlingJavaMicroservices
0 likes · 57 min read
Step-by-Step Guide to Building PassJava with Spring Cloud Alibaba, Nacos, OpenFeign, Gateway, OSS Integration, and Unified Exception Handling
Programmer DD
Programmer DD
Nov 9, 2020 · Backend Development

How to Implement a Non‑Intrusive Unified JSON Response in Spring Boot

This tutorial explains why a unified JSON format is needed in a Spring Boot project, defines a standard {code, message, data} schema, shows how to create a Result enum and generic wrapper class, and demonstrates global handling with @ResponseResultBody, ResponseBodyAdvice, and @ExceptionHandler for clean, consistent API responses.

BackendException HandlingJSON response
0 likes · 14 min read
How to Implement a Non‑Intrusive Unified JSON Response in Spring Boot
Top Architect
Top Architect
Nov 1, 2020 · Backend Development

Implementing Operation and Exception Logging with Spring Boot AOP

This article demonstrates how to use Spring Boot AOP to automatically record operation and exception logs by defining log tables, adding the AOP starter dependency, creating a custom @OperLog annotation, implementing an aspect that captures request details and errors, and applying the annotation to controller methods, providing a clean, reusable logging solution for Java backend applications.

Exception HandlingJavaSpring Boot
0 likes · 11 min read
Implementing Operation and Exception Logging with Spring Boot AOP
Java Backend Technology
Java Backend Technology
Oct 31, 2020 · Backend Development

Mastering Java Exceptions and @Transactional: When Do Transactions Roll Back?

This article explains Java exception categories, distinguishing checked from unchecked exceptions, and shows how Spring's @Transactional annotation controls transaction rollbacks, including configurations for rolling back on checked exceptions, preventing rollback on unchecked ones, and best practices for applying @Transactional in backend services.

Exception HandlingJavaspring
0 likes · 5 min read
Mastering Java Exceptions and @Transactional: When Do Transactions Roll Back?
vivo Internet Technology
vivo Internet Technology
Oct 20, 2020 · Fundamentals

Understanding Java Try‑with‑Resources: Syntax, Bytecode, and Best Practices

The article explains Java’s try‑with‑resources feature as syntactic sugar that the compiler rewrites into a try‑finally structure with sophisticated exception handling, demonstrates the generated bytecode, clarifies AutoCloseable versus Closeable, and offers best‑practice guidelines for reliable resource management.

Exception HandlingJDK 9Java
0 likes · 17 min read
Understanding Java Try‑with‑Resources: Syntax, Bytecode, and Best Practices
Programmer DD
Programmer DD
Sep 18, 2020 · Backend Development

How to Hide Try‑Catch: Elegant Exception Handling with Java Lambdas

This article explains how to replace verbose try‑catch blocks in Java with behavior‑parameterized lambda expressions and functional interfaces, providing a cleaner way to handle both runtime and checked exceptions while also demonstrating file‑reading using try‑with‑resources and lambdas.

Exception HandlingFunctional InterfaceLambda
0 likes · 5 min read
How to Hide Try‑Catch: Elegant Exception Handling with Java Lambdas
Programmer DD
Programmer DD
Sep 17, 2020 · Backend Development

How to Implement Multi-Image Upload and Preview in Spring MVC

This guide walks through building a Spring MVC backend that accepts multiple image uploads, returns them for preview, and covers front‑end HTML, JavaScript handling, multipart configuration, and common pitfalls such as parameter naming, file size limits, and global exception handling.

Exception HandlingJavaScriptMultipartFile
0 likes · 7 min read
How to Implement Multi-Image Upload and Preview in Spring MVC
Top Architect
Top Architect
Sep 11, 2020 · Backend Development

Non‑Intrusive Unified JSON Response Format with Global Handling in Spring Boot

This article demonstrates how to design a non‑intrusive, unified JSON response structure for Spring Boot applications, defines a standard Result wrapper and status enum, shows static factory methods, and explains global handling via @ResponseResultBody, @RestControllerAdvice, and centralized exception processing.

Exception HandlingJSONJava
0 likes · 14 min read
Non‑Intrusive Unified JSON Response Format with Global Handling in Spring Boot
Architecture Digest
Architecture Digest
Sep 10, 2020 · Fundamentals

Elegant Exception Handling in Java Using Functional Interfaces and Lambda Expressions

This article explains how to simplify Java exception handling by leveraging behavior parameterization, lambda expressions, and functional interfaces, demonstrating a clean wrapper for checked exceptions and a try‑with‑resources file‑to‑string conversion that keeps business logic free of boilerplate try‑catch blocks.

Behavior ParameterizationException HandlingFunctional Interface
0 likes · 5 min read
Elegant Exception Handling in Java Using Functional Interfaces and Lambda Expressions
Top Architect
Top Architect
Sep 3, 2020 · Backend Development

Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response

This article demonstrates how to construct a well‑structured Spring Boot backend API by integrating request validation with Hibernate Validator, implementing global exception handling, defining custom exceptions, and standardizing responses using a unified response object and response‑body advice.

Exception HandlingParameter ValidationSpring Boot
0 likes · 18 min read
Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response
Java Captain
Java Captain
Aug 29, 2020 · Backend Development

Elegant Exception Handling in Java Using Functional Interfaces and Lambda Expressions

This article demonstrates how to simplify Java exception handling by leveraging behavior parameterization, functional interfaces, and lambda expressions, and applies the same technique to streamline file‑reading code with try‑with‑resources and lambda‑based processing.

Behavior ParameterizationException HandlingFunctional Interface
0 likes · 5 min read
Elegant Exception Handling in Java Using Functional Interfaces and Lambda Expressions
JD Retail Technology
JD Retail Technology
Aug 19, 2020 · Backend Development

Understanding Exception Handling: Strategies and Best Practices for Different System Types

This article explains the complexities of exception handling across various backend scenarios—such as message queues, RPC services, mobile and PC clients—offering practical guidelines on when to catch, rethrow, use error codes, or employ alternatives like Java Optional to improve code clarity and system reliability.

Error CodesException HandlingJava
0 likes · 7 min read
Understanding Exception Handling: Strategies and Best Practices for Different System Types
Programmer DD
Programmer DD
Aug 6, 2020 · Backend Development

Mastering Spring @Transactional: Exception Types and Rollback Strategies

This article explains Java exception classifications, how Spring's @Transactional handles checked and unchecked exceptions, and provides practical configurations to control transaction rollbacks, while offering best‑practice notes on annotation placement and method design.

Exception Handlingspringtransaction
0 likes · 6 min read
Mastering Spring @Transactional: Exception Types and Rollback Strategies
Youku Technology
Youku Technology
Aug 3, 2020 · Fundamentals

Mastering Defensive Programming: Guard Clauses, Exceptions, and DRY in Java

This article explains how to write robust Java code by applying defensive programming techniques such as guard clauses, proper exception handling, validator usage, assertions, and the DRY principle, while illustrating each concept with clear code examples and practical guidelines.

DRY principleException HandlingJava
0 likes · 20 min read
Mastering Defensive Programming: Guard Clauses, Exceptions, and DRY in Java
Architecture Digest
Architecture Digest
Aug 2, 2020 · Backend Development

Understanding Exception Types and @Transactional Usage in Spring

This article explains Java exception classification, the difference between checked and unchecked exceptions, and how to correctly configure Spring's @Transactional annotation to control rollback behavior for various exception types, including best practices for placement and method design.

BackendException HandlingJava
0 likes · 4 min read
Understanding Exception Types and @Transactional Usage in Spring
ITPUB
ITPUB
Jul 31, 2020 · Backend Development

What Java Developers Can Learn from Top StackOverflow Questions: Branch Prediction, Security, Exceptions, and More

This article reviews several of the most popular Java questions on StackOverflow, explaining branch prediction for sorted arrays, why char[] is safer than String for passwords, handling NullPointerException, deterministic random strings, historic timezone quirks, creating an uncatchable exception, and the differences between HashMap, TreeMap and LinkedHashMap, highlighting practical lessons for developers.

Exception HandlingHashMapJava
0 likes · 10 min read
What Java Developers Can Learn from Top StackOverflow Questions: Branch Prediction, Security, Exceptions, and More
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Jul 24, 2020 · Mobile Development

Understanding Android Java Exception Capture and Handling Mechanism

Android captures uncaught Java exceptions using Thread.UncaughtExceptionHandler, first logging details with a system LoggingHandler then terminating the app via KillApplicationHandler, converting the Throwable into an ApplicationErrorReport sent to ActivityManagerService and stored in /data/system/dropbox, while developers can view the same FATAL EXCEPTION stack trace in logcat to diagnose and fix the root cause.

AndroidException HandlingJava
0 likes · 10 min read
Understanding Android Java Exception Capture and Handling Mechanism
Youku Technology
Youku Technology
Jul 17, 2020 · Backend Development

Defensive Programming, Exception Handling, and DRY Principle in Java

The article explains how defensive programming in Java—using guard clauses, validators, and side‑effect‑free assertions—prevents errors, outlines proper exception handling by distinguishing checked from unchecked exceptions, and reinforces the DRY principle, urging developers to abstract repeated logic after three occurrences.

DRY principleException HandlingJava
0 likes · 18 min read
Defensive Programming, Exception Handling, and DRY Principle in Java
Beike Product & Technology
Beike Product & Technology
Jul 2, 2020 · Mobile Development

How the Haishen Platform Detects and Resolves iOS Crashes in Real Time

This article explains the design and implementation of the Haishen crash monitoring platform for iOS, covering its system architecture, data collection, parsing, aggregation, routing, SDK features, exception handling, stack capture, startup crash detection, and upload mechanisms to quickly expose, locate, and fix crashes.

Exception HandlingSystem Designcrash monitoring
0 likes · 17 min read
How the Haishen Platform Detects and Resolves iOS Crashes in Real Time
Architect's Alchemy Furnace
Architect's Alchemy Furnace
Jun 28, 2020 · Backend Development

Mastering Java Exception Handling and Global Error Management in Spring Boot

This article explains Java's throw‑catch mechanism, the three core principles of exception handling, and demonstrates how to design a custom exception hierarchy and a Spring Boot @ControllerAdvice‑based global handler to simplify error processing and improve code maintainability.

Backend DevelopmentException HandlingGlobal Error Handling
0 likes · 13 min read
Mastering Java Exception Handling and Global Error Management in Spring Boot
Programmer DD
Programmer DD
Jun 17, 2020 · Information Security

How One Line of Code Opened a Remote Code Execution Hole in SpringBoot

A SpringBoot project’s custom validator introduced a severe remote code execution vulnerability when a single line of code interpolated user input, illustrating the importance of rigorous input validation, internationalized error handling, and security scanning before deployment.

EL InjectionException HandlingSecurity Vulnerability
0 likes · 13 min read
How One Line of Code Opened a Remote Code Execution Hole in SpringBoot
Top Architect
Top Architect
Jun 9, 2020 · Backend Development

Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum‑Based Error Codes

The article explains how to replace repetitive try‑catch blocks with a unified exception handling mechanism in Spring Boot by leveraging @ControllerAdvice, custom BaseException, enum‑driven error codes, Assert utilities, and standardized response objects to improve code readability and maintainability.

AssertBackendException Handling
0 likes · 21 min read
Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum‑Based Error Codes
政采云技术
政采云技术
Jun 7, 2020 · Fundamentals

Git Exception Handling Checklist: Solutions for Common Issues

This article provides a concise, step‑by‑step checklist of common Git exceptions—including file recovery, branch deletion, commit amendment, branch renaming, commit rollback, merge reversal, and branch restoration—along with the exact commands and explanations needed to resolve each situation efficiently.

Exception HandlingTutorialcommand-line
0 likes · 13 min read
Git Exception Handling Checklist: Solutions for Common Issues
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
Programmer DD
Programmer DD
May 23, 2020 · Backend Development

Master Java Exception Handling: 9 Proven Best Practices

This article explains nine essential best‑practice guidelines for handling exceptions in Java, covering resource cleanup, specific exception types, documentation, informative messages, catch ordering, avoiding Throwable, proper logging, and exception wrapping to improve code readability and reliability.

BackendException HandlingJava
0 likes · 11 min read
Master Java Exception Handling: 9 Proven Best Practices
FunTester
FunTester
May 21, 2020 · Backend Development

Best Practices for Handling Java Exceptions: Common Mistakes and Correct Approaches

This article presents common error patterns and proper techniques for handling Java exceptions, illustrating why returning null, catching generic exceptions, swallowing Throwables, and misusing finally blocks are problematic, and provides clear, correct examples to improve exception management in Java applications.

Error HandlingException HandlingJava
0 likes · 7 min read
Best Practices for Handling Java Exceptions: Common Mistakes and Correct Approaches
Programmer DD
Programmer DD
May 20, 2020 · Backend Development

Why Does Druid Throw “Connection Holder Is Null” and How to Fix It?

This article examines recurring “connection holder is null” errors in Druid’s connection pool, explains how the holder is assigned and cleared, analyzes two real‑world cases—long‑running transactions and killed connections—and offers practical configuration recommendations to prevent the issue.

Connection PoolDruidException Handling
0 likes · 7 min read
Why Does Druid Throw “Connection Holder Is Null” and How to Fix It?
Java Captain
Java Captain
May 1, 2020 · Backend Development

Unified Exception Handling in Spring Boot Using Assert and Enum-based Error Codes

This article demonstrates how to replace repetitive try‑catch blocks in Java Spring applications with a unified exception handling approach that leverages @ControllerAdvice, custom Assert utilities, and enum‑based error codes to produce clean, maintainable, and internationalized error responses across controllers and services.

AssertException HandlingJava
0 likes · 20 min read
Unified Exception Handling in Spring Boot Using Assert and Enum-based Error Codes
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 30, 2020 · Fundamentals

Detailed Explanation of ARMv8 Exception Handling Process

The article provides a thorough walkthrough of ARMv8 exception handling, describing the four exception levels (EL0‑EL3) and their dedicated stack and status registers, distinguishing synchronous and asynchronous faults, and detailing the vector table, entry routine, ESR‑based type decoding, handling steps such as do_mem_abort, and context restoration, illustrated with a Data Abort case.

ARMv8ELRESR
0 likes · 10 min read
Detailed Explanation of ARMv8 Exception Handling Process
58 Tech
58 Tech
Apr 17, 2020 · Mobile Development

Flutter Integration in Anjuke App Using Magpie Open Source Projects

This article demonstrates how the Magpie open‑source suite can be used to migrate the Anjuke App’s “YouLiao” module to Flutter, covering project setup, hybrid engineering, module integration, UI component reuse, theme management, logging, and exception handling to improve development efficiency and cross‑platform consistency.

AndroidDARTException Handling
0 likes · 19 min read
Flutter Integration in Anjuke App Using Magpie Open Source Projects
JD Retail Technology
JD Retail Technology
Apr 9, 2020 · Fundamentals

Six Common Code Review Mistakes and How to Avoid Them

This article outlines six frequent code review pitfalls—including missing change notes, overusing generic exception handling, blind trust in third‑party inputs, overly broad variable scopes, lack of staged results, and excessive logging—and offers practical recommendations to improve code quality and maintainability.

Code reviewException HandlingSoftware quality
0 likes · 5 min read
Six Common Code Review Mistakes and How to Avoid Them
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 6, 2020 · Fundamentals

When Should You Use Exceptions in Java? Best Practices Explained

This article explains the proper use of Java exceptions, distinguishing between checked and unchecked exceptions, showing when to throw them, how to design APIs that avoid misuse, and offering guidelines for documenting and handling exceptions effectively.

Checked ExceptionsException HandlingUnchecked Exceptions
0 likes · 11 min read
When Should You Use Exceptions in Java? Best Practices Explained
Python Programming Learning Circle
Python Programming Learning Circle
Mar 21, 2020 · Fundamentals

Python Fundamentals: Standard Libraries, Data Types, Context Managers, and Common Practices

This article presents a comprehensive Python fundamentals guide covering common standard libraries, built‑in data types, the with statement, mutable vs immutable types, date handling, word counting, file deletion, custom exceptions, error handling, bug‑fix strategies, and key language feature differences between Python 2 and 3.

Data TypesException HandlingPython2 vs Python3
0 likes · 15 min read
Python Fundamentals: Standard Libraries, Data Types, Context Managers, and Common Practices
Qunar Tech Salon
Qunar Tech Salon
Mar 17, 2020 · Fundamentals

What I Learned from Doing 1,000 Code Reviews: Common Mistakes and Best Practices

The article shares insights from reviewing thousands of code submissions, highlighting frequent errors such as swallowing exceptions, overusing generic string types, and misusing nulls, and recommends concrete type usage, proper exception handling, Optionals, and "unlifting" techniques to improve code quality and maintainability.

Code reviewException HandlingJava
0 likes · 8 min read
What I Learned from Doing 1,000 Code Reviews: Common Mistakes and Best Practices
21CTO
21CTO
Feb 17, 2020 · Fundamentals

Master Java Exceptions: Types, Handling, and Best Practices

This article explains Java exceptions, classifies them into Errors and Exceptions (including RuntimeException and CheckedException), describes how to handle them with try‑catch, throw, and throws, clarifies the difference between throw and throws, and offers practical best‑practice guidelines.

CheckedExceptionErrorException Handling
0 likes · 5 min read
Master Java Exceptions: Types, Handling, and Best Practices
macrozheng
macrozheng
Feb 14, 2020 · Backend Development

How Lombok Supercharges Your Java Code and Eliminates Boilerplate

This article explains what Lombok is, how to integrate it into a Maven project, and demonstrates its most useful annotations—such as @Getter, @Setter, @Builder, @AllArgsConstructor, @NoArgsConstructor, @RequiredArgsConstructor, @NonNull, @Cleanup, and @SneakyThrows—to dramatically reduce boilerplate, simplify object creation, enforce null checks, manage resources, and streamline exception handling in Java applications.

Boilerplate ReductionBuilder PatternException Handling
0 likes · 8 min read
How Lombok Supercharges Your Java Code and Eliminates Boilerplate
Programmer DD
Programmer DD
Dec 12, 2019 · Backend Development

Mastering Spring Boot Validation: Annotations, Custom Rules, and Global Error Handling

This article explains how to use Bean Validation in Spring Boot to replace repetitive IF‑ELSE checks with annotation‑driven parameter checks, covers built‑in and Hibernate‑specific constraints, demonstrates custom validators, group validation, and shows how to centralize error responses with a global exception handler.

Bean ValidationException HandlingJava
0 likes · 11 min read
Mastering Spring Boot Validation: Annotations, Custom Rules, and Global Error Handling
Programmer DD
Programmer DD
Dec 7, 2019 · Information Security

Master Spring Security Exception Handling: From Authentication to Access Denied

This article explains the different exception types in Spring Security, how HTTP status codes map to authentication and authorization failures, and provides concrete implementations of AuthenticationEntryPoint and AccessDeniedHandler that return JSON responses, along with configuration tips for integrating them into a Spring Boot application.

AuthorizationException HandlingJava
0 likes · 8 min read
Master Spring Security Exception Handling: From Authentication to Access Denied
Java Captain
Java Captain
Oct 22, 2019 · Backend Development

Common Java Coding Pitfalls and Best‑Practice Recommendations

This article enumerates typical Java coding mistakes—such as using "where 1=1" in MyBatis, iterating Map inefficiently, neglecting Collection.isEmpty, omitting collection size hints, concatenating strings in loops, overusing List.contains, misusing static initializers, keeping redundant code, and more—while providing concise, performance‑oriented corrections with clear examples.

Code OptimizationCollectionsException Handling
0 likes · 13 min read
Common Java Coding Pitfalls and Best‑Practice Recommendations
MaGe Linux Operations
MaGe Linux Operations
Jun 1, 2019 · Fundamentals

Master Python Exception Handling: From Basics to Best Practices

This article explains what errors and exceptions are in Python, how the try/except/finally constructs work, demonstrates various usage patterns—including catching specific or multiple exceptions, re‑raising, and using built‑in alternatives—and provides best‑practice guidelines for robust error handling.

Error HandlingException HandlingPython
0 likes · 12 min read
Master Python Exception Handling: From Basics to Best Practices
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
May 28, 2019 · Backend Development

Unlock Go’s gobox Framework: Exception Handling, Utilities & Practical Examples

This article introduces the lightweight Go framework gobox, demonstrating its exception definition, common utility functions such as slice deduplication, file and directory existence checks, recursive file listing, JSON file saving and parsing, substring extraction, time formatting constants, and random number generation based on timestamps, all with clear code examples.

Exception HandlingJSONgobox
0 likes · 8 min read
Unlock Go’s gobox Framework: Exception Handling, Utilities & Practical Examples
Wukong Talks Architecture
Wukong Talks Architecture
Apr 27, 2019 · Fundamentals

C# Multithreading Journey (2) – Creating and Starting Threads

This article explains how to create and start threads in C#, covering ThreadStart delegates, lambda expressions, passing parameters, naming threads, foreground/background distinctions, thread priority, and exception handling, with clear code examples and best‑practice recommendations.

CException HandlingLambda
0 likes · 13 min read
C# Multithreading Journey (2) – Creating and Starting Threads
Xianyu Technology
Xianyu Technology
Apr 25, 2019 · Mobile Development

How Xianyu Monitors Flutter Performance for Hundreds of Millions of Users

This article explains Xianyu's comprehensive Flutter performance monitoring system—including frame‑rate tracking, page‑load timing, and exception rate metrics—detailing the underlying principles, implementation steps, and real‑world results that help maintain a smooth user experience at massive scale.

Exception HandlingFlutterMobile Development
0 likes · 9 min read
How Xianyu Monitors Flutter Performance for Hundreds of Millions of Users
360 Tech Engineering
360 Tech Engineering
Mar 21, 2019 · Fundamentals

Return Code Bugs and Their Fixes in Function Testing

The article examines two typical return‑code bugs encountered during software testing—one where a default success code is unintentionally returned in error scenarios and another where mismatched return‑code checks render error‑handling branches unreachable—offering concrete solutions and best‑practice recommendations.

Exception HandlingSoftware Testingbest practices
0 likes · 4 min read
Return Code Bugs and Their Fixes in Function Testing
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
Java Captain
Java Captain
Oct 15, 2018 · Backend Development

Implementing AOP in Java Controllers: Guidelines and Code Example

This article explains how to use Aspect‑Oriented Programming (AOP) in Java backend controllers by defining a unified ResultBean response format, outlining controller coding conventions, and providing complete Java and XML examples for logging, exception handling, and AOP configuration.

Backend DevelopmentControllerException Handling
0 likes · 5 min read
Implementing AOP in Java Controllers: Guidelines and Code Example
Programmer DD
Programmer DD
Sep 1, 2018 · Backend Development

Mastering Spring REST API Exception Handling: From @ExceptionHandler to @ControllerAdvice

This guide walks through multiple strategies for handling exceptions in Spring REST APIs, covering legacy @ExceptionHandler methods, HandlerExceptionResolver options, the modern @ControllerAdvice approach, and security-related error handling, providing code examples and best‑practice recommendations for building robust, maintainable services.

BackendException HandlingJava
0 likes · 11 min read
Mastering Spring REST API Exception Handling: From @ExceptionHandler to @ControllerAdvice
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
Programmer DD
Programmer DD
Jun 21, 2018 · Fundamentals

Master Java Interview Essentials: 8 Classic Questions Explained

This article breaks down eight core Java interview questions, offering deep analysis of platform fundamentals, exception handling, reflection, I/O, concurrency, and object‑oriented design to help candidates demonstrate solid understanding beyond superficial answers.

Core ConceptsException HandlingJava
0 likes · 12 min read
Master Java Interview Essentials: 8 Classic Questions Explained
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
MaGe Linux Operations
MaGe Linux Operations
Feb 26, 2018 · Fundamentals

Master Python Errors: A Complete Guide to Exceptions and Handling

This article explains the nature of programming errors, distinguishes syntax and logical mistakes from runtime exceptions, introduces common Python exception types, and provides detailed guidance on using try‑except‑else‑finally, raise, and assert statements for robust error handling.

AssertException Handlingerrors
0 likes · 13 min read
Master Python Errors: A Complete Guide to Exceptions and Handling
Tencent Music Tech Team
Tencent Music Tech Team
Jan 12, 2018 · Mobile Development

Analysis of Toast Display Issues in Android Applications

The article examines common Android Toast problems, detailing exceptions like WindowManager$BadTokenException and sporadic display failures, explains how Toast uses a system TYPE_TOAST window, analyzes the underlying source code, and offers practical solutions to prevent and fix these issues.

AndroidBinder ProxyException Handling
0 likes · 11 min read
Analysis of Toast Display Issues in Android Applications
MaGe Linux Operations
MaGe Linux Operations
Jan 7, 2018 · Backend Development

Why Your Python with‑Statement Fails: Debugging Global Process Locks

The article examines a flawed implementation of a global process lock using Python's with statement, explains why exceptions raised in __enter__ are not caught by __exit__, demonstrates failing unit tests, and presents three alternative solutions—including a custom ABContext, use of the deprecated contextlib.nested, and a simple if‑statement workaround—to correctly manage exceptions in context managers.

Exception HandlingPythoncontext manager
0 likes · 6 min read
Why Your Python with‑Statement Fails: Debugging Global Process Locks
Java Captain
Java Captain
Sep 15, 2017 · Backend Development

Understanding Java Exception Handling: Concepts, Keywords, and Best Practices

This article explains the fundamentals of Java exceptions, the use of try‑catch‑finally, throws and throw keywords, inheritance rules for exception declarations, and offers practical recommendations for designing clean, efficient, and maintainable exception handling in Java applications.

Exception HandlingThrowbest practices
0 likes · 13 min read
Understanding Java Exception Handling: Concepts, Keywords, and Best Practices
Java Captain
Java Captain
Aug 22, 2017 · Backend Development

Common Misconceptions in Java Exception Handling and Best Practices

The article examines frequent misunderstandings about Java exception selection, propagation, logging, and layering, offering concrete refactorings and guidelines to help developers choose appropriate exception types, avoid exposing stack traces, prevent code coupling, and improve overall system robustness and maintainability.

Exception Handlingerror-management
0 likes · 14 min read
Common Misconceptions in Java Exception Handling and Best Practices
ITPUB
ITPUB
Jul 17, 2017 · Fundamentals

How to Build Software That’s Both Useful and Beautiful: 10 Essential Practices for Developers

This article shares ten practical guidelines—from clear naming and solid modeling to robust exception handling, elegant design, strong fundamentals, effective documentation, and a positive mindset—aimed at helping developers create software that is both functional and visually appealing while advancing their careers.

Career GrowthDocumentationException Handling
0 likes · 13 min read
How to Build Software That’s Both Useful and Beautiful: 10 Essential Practices for Developers
360 Quality & Efficiency
360 Quality & Efficiency
Jun 30, 2017 · Backend Development

Avoid Using return in a finally Block (Java)

This article explains why using a return statement inside a Java finally block should be avoided, illustrating how it suppresses exceptions and overrides earlier returns, and cites the Java Language Specification and JVM behavior to highlight the risks for developers.

Exception HandlingJavacoding standards
0 likes · 5 min read
Avoid Using return in a finally Block (Java)
21CTO
21CTO
Jun 23, 2017 · Frontend Development

Master Front-End Error Collection: Capture JS Exceptions and Resource Failures

This guide explains why front‑end error collection is essential, outlines effective methods such as using window.addEventListener('error', true), details the types of exceptions to monitor—including script errors, resource load failures, HTML hijacking, and CSS issues—and provides practical code snippets for reporting and handling them.

Exception HandlingJavaScriptWeb Performance
0 likes · 10 min read
Master Front-End Error Collection: Capture JS Exceptions and Resource Failures
Programmer DD
Programmer DD
May 17, 2017 · Backend Development

Mastering Zuul Exception Handling: From Try‑Catch to Custom Error Filters

This article examines the shortcomings of basic try‑catch and error‑type filter approaches in Spring Cloud Zuul, analyzes the request‑processing flow, and presents a refined solution using a custom error filter, extended FilterProcessor, and context attributes to reliably capture and handle post‑filter exceptions.

BackendException HandlingJava
0 likes · 10 min read
Mastering Zuul Exception Handling: From Try‑Catch to Custom Error Filters
Programmer DD
Programmer DD
May 14, 2017 · Backend Development

How to Implement Unified Exception Handling with Zuul Error Filters

This article explains why exceptions thrown in a Zuul pre‑filter are silent, shows how to set error parameters in the request context, and provides two solutions—adding try‑catch logic to the filter or creating a dedicated error‑filter—to ensure that error details are correctly propagated and returned to the client.

BackendError FilterException Handling
0 likes · 9 min read
How to Implement Unified Exception Handling with Zuul Error Filters
MaGe Linux Operations
MaGe Linux Operations
Mar 15, 2017 · Fundamentals

Master Python Exception Handling: From Basics to Advanced Techniques

This comprehensive guide walks you through Python's exception classes, various try‑except‑else‑finally patterns, handy shortcuts like assert and with, how to raise custom exceptions, and retrieving exception details via the sys module, all illustrated with clear examples and diagrams.

AssertException HandlingPython
0 likes · 9 min read
Master Python Exception Handling: From Basics to Advanced Techniques
ITPUB
ITPUB
May 17, 2016 · Fundamentals

What Happens to a finally Block When a try Returns in Java?

In Java, a finally block always executes before a method returns, even if the try block contains a return statement, and it can even override the original return value, though it may be skipped when the JVM terminates abruptly with System.exit.

Exception HandlingJavaresource-management
0 likes · 5 min read
What Happens to a finally Block When a try Returns in Java?
Qunar Tech Salon
Qunar Tech Salon
Apr 14, 2016 · Backend Development

Effective Exception Handling in Java: Principles and Practices

This article explains how Java exceptions provide a consistent mechanism for identifying and responding to errors, and outlines three key principles—specificity, early throwing, and delayed catching—illustrated with a fictional JCheckbook class to demonstrate robust, user‑friendly debugging practices.

DebuggingException HandlingJava
0 likes · 10 min read
Effective Exception Handling in Java: Principles and Practices