Tagged articles
41 articles
Page 1 of 1
php Courses
php Courses
Nov 11, 2025 · Backend Development

Discover PHP 8.5’s New get_error_handler() and get_exception_handler() Functions

PHP 8.5 introduces get_error_handler() and get_exception_handler() functions, enabling developers to query the currently active error and exception handlers, simplifying debugging, enhancing library intelligence, and supporting conditional logging and testing through clear introspection of custom or default handlers.

Error HandlingExceptionPHP
0 likes · 8 min read
Discover PHP 8.5’s New get_error_handler() and get_exception_handler() Functions
Liangxu Linux
Liangxu Linux
Oct 18, 2025 · Backend Development

How to Safely Stop a Java Thread: From interrupt() to stop() and Beyond

This article explains multiple techniques for terminating a Java thread—including using interrupt flags, checking thread state with isInterrupted(), handling InterruptedException, and why the deprecated stop() method is unsafe—providing code examples, output results, and cautions about lock release and data consistency.

ExceptionJavaStop
0 likes · 12 min read
How to Safely Stop a Java Thread: From interrupt() to stop() and Beyond
Cognitive Technology Team
Cognitive Technology Team
Apr 15, 2025 · Backend Development

Common Pitfalls of Spring Transaction Management and How to Avoid Them

This article explains the typical reasons why Spring @Transactional annotations may fail—including AOP proxy limitations, method visibility, self‑invocation, exception handling, propagation settings, async execution, multiple data sources, and database constraints—and provides practical solutions to ensure reliable transaction behavior.

BackendExceptionProxy
0 likes · 6 min read
Common Pitfalls of Spring Transaction Management and How to Avoid Them
php Courses
php Courses
Feb 12, 2025 · Backend Development

Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices

This article explains how PHP 7 and PHP 8 handle division‑by‑zero errors, outlines common causes of zero‑division, and presents six practical techniques—including input validation, conditional checks, ternary operators, custom error handlers, try‑catch blocks, and avoiding the @ operator—supported by clear code examples and a real‑world financial‑app case study.

BackendExceptionPHP8
0 likes · 6 min read
Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices
Open Source Tech Hub
Open Source Tech Hub
Jan 11, 2025 · Backend Development

Streamline PHP Exception Handling with a Unified Elegant Approach

This article explores why excessive try‑catch blocks clutter PHP code, compares a messy controller implementation with a clean version, explains PHP exception fundamentals, and demonstrates how to centralize error handling in Webman using a custom TinywanHandler with practical configuration and examples.

Backend DevelopmentCustom HandlerError Handling
0 likes · 17 min read
Streamline PHP Exception Handling with a Unified Elegant Approach
Sohu Tech Products
Sohu Tech Products
Sep 25, 2024 · Mobile Development

Crash Convergence and Resilience Mechanisms in Android Applications

The team maintains an ‘opt’ branch for daily‑collected crash fixes, classifies unrecoverable system, device, SDK and framework errors, and employs a Handler‑based whitelist that catches and swallows known crashes while logging others, complemented by null‑safety, concurrency, database and OOM monitoring to keep Android app crash rates manageable.

AndroidExceptionHandler
0 likes · 18 min read
Crash Convergence and Resilience Mechanisms in Android Applications
IT Architects Alliance
IT Architects Alliance
Jul 29, 2024 · Fundamentals

Understanding Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Issues

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, common constructors, essential methods such as add, subtract, multiply, divide, comparison, formatting with NumberFormat, handling of division exceptions, and provides a utility class with static arithmetic operations for accurate calculations.

ArithmeticBigDecimalException
0 likes · 15 min read
Understanding Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Issues
Architect's Guide
Architect's Guide
Jun 24, 2024 · Fundamentals

Comprehensive Guide to Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Pitfalls

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, recommended constructors, key arithmetic methods, comparison techniques, formatting with NumberFormat, handling of division exceptions, and best‑practice tips such as using the String constructor and managing immutability.

ArithmeticBigDecimalException
0 likes · 13 min read
Comprehensive Guide to Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Pitfalls
php Courses
php Courses
Nov 25, 2023 · Backend Development

PHP Error Handling Functions: Usage, Examples, and Best Practices

This article explains PHP's error handling functions—including error_reporting, set_error_handler, trigger_error, and error_log—describes their purposes, shows how to define custom handlers, and provides a complete code example demonstrating error level configuration, logging, email alerts, and user-friendly messages.

Error HandlingExceptionPHP
0 likes · 7 min read
PHP Error Handling Functions: Usage, Examples, and Best Practices
php Courses
php Courses
Nov 16, 2023 · Backend Development

PHP Error Handling and Debugging Techniques

This guide explains how PHP developers can enable comprehensive error reporting, handle exceptions with try‑catch blocks, log errors using error_log, and employ debugging techniques such as breakpoints, print_r, var_dump, and debug_backtrace to efficiently locate and fix code issues.

DebuggingExceptionPHP
0 likes · 6 min read
PHP Error Handling and Debugging Techniques
JD Retail Technology
JD Retail Technology
Oct 23, 2023 · Backend Development

Understanding Java Exceptions and Custom Assertions for Elegant Error Handling

This article explains Java's Error and Exception hierarchy, differentiates compile-time and runtime exceptions, demonstrates standard try‑catch handling, shows how to throw custom exceptions, and introduces custom assertion interfaces that combine readable assertions with tailored exception types for cleaner backend code.

BackendCustom AssertionError Handling
0 likes · 9 min read
Understanding Java Exceptions and Custom Assertions for Elegant Error Handling
Laravel Tech Community
Laravel Tech Community
Jun 4, 2023 · Backend Development

Understanding Exceptions in PHP: Throw, Try, and Catch

This article explains PHP exception handling, describing what exceptions are, how the try‑throw‑catch mechanism works, and provides code examples that illustrate throwing, catching, and converting system errors into exceptions for robust backend development.

BackendError HandlingException
0 likes · 3 min read
Understanding Exceptions in PHP: Throw, Try, and Catch
Top Architect
Top Architect
May 11, 2023 · Fundamentals

How to Properly Stop a Java Thread: Methods, Examples, and Common Pitfalls

This article explains the various ways to terminate a running Java thread—including using exit flags, the deprecated stop() method, interrupt(), and exception handling—illustrates each technique with complete code examples, compares their effects on thread state, and warns about the dangers of forceful termination.

ExceptionStopinterrupt()
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Common Pitfalls
Architect
Architect
Feb 23, 2023 · Fundamentals

How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls

This article explains various ways to terminate a running Java thread, comparing safe flag‑based exit, the deprecated stop/suspend/resume methods, and the recommended interrupt approach, while demonstrating how to detect interruption status, handle exceptions, and avoid common pitfalls with code examples.

DeprecatedExceptionJava
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
Architect's Tech Stack
Architect's Tech Stack
Jun 5, 2022 · Backend Development

Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop

This article explains that using return inside Java 8’s forEach does not stop the surrounding method but merely skips the current iteration, similar to continue, and presents several solutions—including using a traditional foreach loop, break, return (not recommended), and throwing an exception—to correctly terminate the loop.

/loopExceptionJava
0 likes · 5 min read
Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop
Java High-Performance Architecture
Java High-Performance Architecture
Apr 16, 2022 · Backend Development

Mastering Java BigDecimal: Precise Calculations, Common Pitfalls, and Best Practices

This article explains Java's BigDecimal class, covering its purpose for high‑precision arithmetic, recommended constructors, essential methods, comparison techniques, formatting with NumberFormat, handling of division exceptions, and practical tips for efficient and accurate numeric computations.

ArithmeticBigDecimalException
0 likes · 14 min read
Mastering Java BigDecimal: Precise Calculations, Common Pitfalls, and Best Practices
Selected Java Interview Questions
Selected Java Interview Questions
Apr 3, 2022 · Fundamentals

Comprehensive Guide to Java BigDecimal: Overview, Constructors, Common Methods, Formatting, and Pitfalls

This article provides an in‑depth overview of Java's BigDecimal class, covering its purpose for high‑precision arithmetic, essential constructors, key methods for addition, subtraction, multiplication, division, formatting techniques, common exceptions, and practical utility code examples.

ArithmeticBigDecimalException
0 likes · 15 min read
Comprehensive Guide to Java BigDecimal: Overview, Constructors, Common Methods, Formatting, and Pitfalls
Programmer DD
Programmer DD
Jan 13, 2022 · Backend Development

Why Arrays.asList and subList Can Throw Unexpected Exceptions in Java

This article explains the hidden pitfalls of Java's Arrays.asList and ArrayList.subList methods, showing why add operations may trigger UnsupportedOperationException and how modifications to original or sub‑lists can cause ConcurrentModificationException, with code examples and visual illustrations.

Arrays.asListCollectionsException
0 likes · 8 min read
Why Arrays.asList and subList Can Throw Unexpected Exceptions in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Oct 19, 2021 · Backend Development

How Spring Boot Handles Errors: From /error to Custom Responses

This article explains how Spring Boot 2.4.11 processes exceptions, routes them to the default /error endpoint, and uses BasicErrorController along with ContentNegotiatingViewResolver and StaticView to generate HTML or JSON error responses based on the Accept header, including code examples and configuration details.

BackendError HandlingException
0 likes · 10 min read
How Spring Boot Handles Errors: From /error to Custom Responses
Tencent Cloud Developer
Tencent Cloud Developer
Aug 9, 2021 · Fundamentals

Performance Evaluation and Implementation Overview of C++ Exceptions

Benchmarking C++ exceptions against error‑code handling reveals that frequent throws incur more than tenfold slowdown due to libc++ runtime functions like __cxa_allocate_exception and stack unwinding, while rare exceptions and empty try blocks add negligible overhead, highlighting the trade‑off between safety and performance.

AssemblyC++Exception
0 likes · 13 min read
Performance Evaluation and Implementation Overview of C++ Exceptions
Selected Java Interview Questions
Selected Java Interview Questions
Apr 8, 2021 · Backend Development

Common Scenarios Where Spring @Transactional Fails and How to Fix Them

This article outlines common situations that cause Spring @Transactional to fail—such as non‑public methods, internal method calls, unmanaged beans, non‑runtime exceptions, silent catches, incorrect propagation settings, and unsupported MySQL storage engines—and provides practical solutions to ensure transaction reliability.

BackendExceptionJava
0 likes · 10 min read
Common Scenarios Where Spring @Transactional Fails and How to Fix Them
php Courses
php Courses
Mar 5, 2021 · Backend Development

Integrating Whoops Error Handler into ThinkPHP6

This tutorial explains how to install the Whoops library via Composer and configure ThinkPHP6’s ExceptionHandle to replace the default error page with Whoops’ detailed, user‑friendly exception view, including code examples and a final verification.

BackendError HandlingException
0 likes · 3 min read
Integrating Whoops Error Handler into ThinkPHP6
php Courses
php Courses
Nov 3, 2020 · Backend Development

Laravel-Quick: A Utility Package for Efficient Backend Development

Laravel-Quick is an open‑source Laravel package that provides translated validation messages, standardized HTTP status responses, exception handling, Redis‑based cache helpers, and artisan generators, with installation and usage instructions for backend developers.

BackendCacheException
0 likes · 2 min read
Laravel-Quick: A Utility Package for Efficient Backend Development
Python Programming Learning Circle
Python Programming Learning Circle
May 26, 2020 · Fundamentals

Python Error Handling and Debugging Techniques

This article explains common Python runtime errors, demonstrates how to read traceback information, introduces the try‑except‑finally construct, and covers practical debugging methods such as print/assert statements and the built‑in pdb module with example code snippets.

Error HandlingExceptiontry-except
0 likes · 6 min read
Python Error Handling and Debugging Techniques
360 Tech Engineering
360 Tech Engineering
Apr 13, 2020 · Backend Development

Understanding Exception and Error Handling in Go

This article explains how Go handles exceptions and errors using defer, panic, and recover, compares it with try‑catch in other languages, demonstrates the built‑in error interface, custom error types, and provides multiple code examples and analyses of their output.

Error HandlingExceptionGo
0 likes · 6 min read
Understanding Exception and Error Handling in Go
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 8, 2020 · Big Data

Common Apache Flink Exceptions and How to Resolve Them

This article enumerates typical Apache Flink deployment, job, and checkpoint errors—such as JDK version issues, resource shortages, task manager timeouts, and state migration problems—and provides practical troubleshooting steps and configuration tips to help engineers quickly diagnose and fix these failures.

Big DataCheckpointException
0 likes · 8 min read
Common Apache Flink Exceptions and How to Resolve Them
Programmer DD
Programmer DD
Feb 21, 2020 · Backend Development

Mastering Thread Termination in Java: Safe Practices and Common Pitfalls

This article explains how to properly stop a Java thread, compares deprecated Thread.stop() with interruption techniques, demonstrates checking a thread's interrupted state, shows how to use exceptions and return statements for graceful termination, and warns about the dangers of forceful stops and lock release.

ExceptionJavaStop
0 likes · 12 min read
Mastering Thread Termination in Java: Safe Practices and Common Pitfalls
Xianyu Technology
Xianyu Technology
Dec 25, 2018 · Mobile Development

Understanding Flutter Exceptions and Lifecycle Management

The Xianyu tech team’s 2018 Flutter migration cut exception rates from several per‑thousand to under one by targeting two main stack‑trace groups—setState‑related and BuildContext‑related errors—while emphasizing proper lifecycle checks such as verifying mounted before setState and using the correct widget context.

BuildContextExceptionFlutter
0 likes · 6 min read
Understanding Flutter Exceptions and Lifecycle Management
21CTO
21CTO
Jun 12, 2017 · Frontend Development

Mastering JavaScript Error Handling: From Try‑Catch to Global onerror

This article explains why proper JavaScript error handling is essential, compares syntax and runtime errors, demonstrates good and bad try‑catch patterns, shows how to use global onerror listeners, capture stack traces, and handle asynchronous exceptions to improve frontend code reliability.

AsynchronousDebuggingError Handling
0 likes · 13 min read
Mastering JavaScript Error Handling: From Try‑Catch to Global onerror