Tagged articles

exception handling

407 articles · Page 4 of 5
Programmer DD
Programmer DD
Jun 5, 2021 · Backend Development

When Does @Transactional Roll Back? Mastering Spring Transaction Exceptions

This article explains Alibaba’s Java guidelines for using @Transactional, categorizes checked and unchecked exceptions, shows how Spring’s default rollback behavior works, and provides practical examples of configuring rollback rules, avoiding common pitfalls, and best practices for applying @Transactional in backend Java applications.

@TransactionalBackend DevelopmentJava
0 likes · 5 min read
When Does @Transactional Roll Back? Mastering Spring Transaction Exceptions
KooFE Frontend Team
KooFE Frontend Team
May 25, 2021 · Frontend Development

Why Ignoring Exceptions Is Killing Your JavaScript Code (And How to Fix It)

This article explains why proper exception handling is essential for high‑quality JavaScript, contrasts using return codes with real exceptions, shows clean versus dirty code examples, and offers practical guidelines such as defining custom exception hierarchies, handling Promise rejections, and providing contextual error information.

JavaScriptcode qualityexception handling
0 likes · 10 min read
Why Ignoring Exceptions Is Killing Your JavaScript Code (And How to Fix It)
Top Architect
Top Architect
May 17, 2021 · Backend Development

Common Spring Transaction Failure Scenarios and Their Solutions

This article explains typical situations where Spring @Transactional annotations fail—such as non‑public methods, beans not managed by the container, internal method calls, non‑RuntimeException throws, caught exceptions without rethrow, incorrect propagation settings, and unsupported MyISAM storage—and provides concrete code examples and fixes to ensure proper transaction behavior.

AOPJavaSpring
0 likes · 10 min read
Common Spring Transaction Failure Scenarios and Their Solutions
Top Architect
Top Architect
May 7, 2021 · Backend Development

Common Spring Transaction Failure Scenarios and Their Solutions

This article explains typical reasons why @Transactional may not work in Spring applications—such as non‑public methods, beans not managed by the container, internal method calls, non‑RuntimeException throws, swallowed exceptions, wrong propagation settings, and unsupported MySQL storage engines—and provides concrete code examples and fixes for each case.

AOPJavaSpring
0 likes · 11 min read
Common Spring Transaction Failure Scenarios and Their Solutions
Selected Java Interview Questions
Selected Java Interview Questions
May 4, 2021 · Backend Development

Building a Reusable Backend Base Project with Swagger, CodeGenerator, Pagination, Exception Handling, and Multi‑Environment Configuration

This article explains how to create a reusable backend foundation for new Spring Boot projects by assembling common utilities such as Swagger API documentation, MyBatis‑Plus code generation, unified response objects, pagination helpers, custom exception handling, multi‑environment Maven and Spring profiles, logback configuration, and a Jenkins pipeline.

JavaSpring Bootbackend
0 likes · 15 min read
Building a Reusable Backend Base Project with Swagger, CodeGenerator, Pagination, Exception Handling, and Multi‑Environment Configuration
Top Architect
Top Architect
May 4, 2021 · Backend Development

Best Practices for Exception Handling in Java

This article outlines essential Java exception‑handling best practices, covering resource cleanup with finally or try‑with‑resources, declaring specific exceptions, documenting throws clauses, providing descriptive messages, catching the most specific exceptions first, avoiding catching Throwable, never ignoring or double‑logging exceptions, and correctly wrapping exceptions without losing the original cause.

Javabest practicescoding standards
0 likes · 11 min read
Best Practices for Exception Handling in Java
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2021 · Fundamentals

Advanced Class Methods and Special Member Functions in Python

This article explains Python's advanced class features—including static methods, class methods, property decorators, special dunder methods, reflection utilities, dynamic attribute manipulation, metaclass creation, and exception handling—illustrated with clear code examples and practical usage tips.

PropertyReflectionclass-methods
0 likes · 14 min read
Advanced Class Methods and Special Member Functions in Python
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Apr 22, 2021 · Backend Development

Prevent Log Injection in Log4j2: Clean Input, PatternLayout, and Custom Throwable Converter

This article explains how malicious newline characters in logged usernames can cause log injection, demonstrates a simple input‑sanitizing method, shows how to use Log4j2's %enc{%m}{CRLF} pattern and a custom ThrowablePatternConverter to ensure all log messages and exception stacks remain on a single safe line.

Loggingexception handlinglog injection
0 likes · 8 min read
Prevent Log Injection in Log4j2: Clean Input, PatternLayout, and Custom Throwable Converter
Selected Java Interview Questions
Selected Java Interview Questions
Apr 14, 2021 · Backend Development

Avoiding Null Checks in Java: When to Use Assertions, Exceptions, and the Null Object Pattern

This article explains why excessive null‑checking in Java code is problematic, distinguishes valid versus invalid null returns, and presents better alternatives such as assertions, throwing exceptions, returning empty collections or objects, and applying the Null Object pattern with concrete code examples.

JavaNULL handlingNull Object pattern
0 likes · 6 min read
Avoiding Null Checks in Java: When to Use Assertions, Exceptions, and the Null Object Pattern
Senior Brother's Insights
Senior Brother's Insights
Apr 11, 2021 · Backend Development

Why Try-with-Resources Outperforms Try-Catch-Finally in Java

Java developers often close resources manually using try-catch-finally, but since JDK 7 the try‑with‑resources construct automates this process; this article explains the traditional pattern, demonstrates the new syntax, shows how to implement custom Closeable classes, and reveals the compiler‑generated bytecode that preserves original exceptions via addSuppressed.

CloseableJDK7Java
0 likes · 10 min read
Why Try-with-Resources Outperforms Try-Catch-Finally in Java
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.

@TransactionalAOPJava
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 handlingJava
0 likes · 32 min read
Mastering Java Exceptions: 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.

bug tracingexception handling
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.

downgradeexception handling
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.

JavaLoggingbest 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.

JavaMicroservicesOSS
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.

JSON responseJavaResponseBodyAdvice
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.

AOPJavaLogging
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.

JavaSpringexception handling
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.

JDK 9Javaautocloseable
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.

Functional InterfaceLambdaexception handling
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.

JavaScriptMultipartFileexception handling
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.

JavaREST APISpring Boot
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 ParameterizationFunctional InterfaceJava
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.

Spring BootUnified Responseexception handling
0 likes · 18 min read
Building a Robust Backend API with Spring Boot: Validation, Global Exception Handling, and Unified Response
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 CodesJavabest practices
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.

@TransactionalSpringTransaction
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 principleDefensive ProgrammingJava
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.

JavaTransactionbackend
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.

HashMapJavaStackOverflow
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.

AndroidJavacrash-analysis
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 principleDefensive ProgrammingJava
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.

Crash MonitoringSystem Designexception handling
0 likes · 17 min read
How the Haishen Platform Detects and Resolves iOS Crashes in Real Time
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 InjectionInternationalizationSecurity Vulnerability
0 likes · 13 min read
How One Line of Code Opened a Remote Code Execution Hole in SpringBoot
政采云技术
政采云技术
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.

command-lineexception handlingsoftware development
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 DevelopmentJavaProgramming Tutorial
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.

Javabackendcoding standards
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 handlingJavabest practices
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 PoolDruidJava
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.

EnumJavaSpring
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.

AndroidDARTFlutter
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.

Loggingbest practicescode review
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.

API designChecked ExceptionsUnchecked 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 TypesPython2 vs Python3context manager
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.

JavaOptionalsbest practices
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.

CheckedExceptionErrorJava
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 PatternJava
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.

AnnotationBean ValidationJava
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.

AuthorizationJavaSpring Security
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.

CollectionsJavacode optimization
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 handlingPythonbest practices
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 handlinggoboxjson
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.

C#LambdaThread Priority
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.

FlutterMobile Developmentexception handling
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.

best practicesbugexception handling
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.

Pythonassertcustom-exception
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.

AOPBackend DevelopmentJava
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.

JavaREST APIbackend
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.

@ControllerAdviceBackend DevelopmentJava
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 ConceptsIOJava
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.

Javacustom-exceptionexception handling
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.

asserterrorsexception handling
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 ProxyNotificationManager
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.

PythonUnit Testingcontext 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.

Throwbest practicesexception handling
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.

error-managementexception handling
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.

Model abstractionNaming Conventionscareer growth
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.

Javacoding standardsexception handling
0 likes · 5 min read
Avoid Using return in a finally Block (Java)