Tag

Exception

1 views collected around this technical thread.

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.

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

ExceptionPHP8backend
0 likes · 6 min read
Handling Division by Zero Errors in PHP: Differences Between PHP 7 and PHP 8 and Best Practices
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.

AndroidCrash HandlingException
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
Dec 8, 2023 · Backend Development

Handling Algorithm Errors in PHP: Exception Handling, Logging, and Assertions

This article explains how to handle algorithm errors in PHP by using exception handling with custom exception classes, error logging via error_log, and runtime assertions, providing clear code examples for each method to improve program reliability and debugging.

AssertionsExceptionPHP
0 likes · 4 min read
Handling Algorithm Errors in PHP: Exception Handling, Logging, and Assertions
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.

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

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

Custom AssertionExceptionJava
0 likes · 9 min read
Understanding Java Exceptions and Custom Assertions for Elegant Error Handling
Selected Java Interview Questions
Selected Java Interview Questions
Sep 19, 2023 · Backend Development

Proper Error Handling and Ensuring Correctness in Backend Development

The article explains why handling errors is essential for writing correct backend programs, discusses common pitfalls such as NPE, OOM, and microservice failures, and provides concrete Java code examples showing how to structure try‑catch blocks and rollbacks to maintain data consistency.

ExceptionJavaMicroservices
0 likes · 10 min read
Proper Error Handling and Ensuring Correctness in Backend Development
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.

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

ExceptionInterruptJava
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Common Pitfalls
Architecture Digest
Architecture Digest
May 10, 2023 · Fundamentals

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

This article provides an in‑depth tutorial on Java's BigDecimal class, covering its purpose for high‑precision arithmetic, common constructors, usage pitfalls, essential methods, number formatting with NumberFormat, handling of division exceptions, and a recommended utility class for precise calculations.

ArithmeticBigDecimalException
0 likes · 15 min read
Comprehensive Guide to Java BigDecimal: Overview, Constructors, Methods, Formatting, and Common Exceptions
Top Architect
Top Architect
Mar 3, 2023 · Backend Development

How to Stop a Java Thread: Methods, Code Samples, and Common Pitfalls

This article explains various ways to terminate a running Java thread, including using exit flags, interrupt(), deprecated stop()/suspend()/resume() methods, handling InterruptedException, while providing code examples and discussing the risks of forceful termination.

ExceptionInterruptJava
0 likes · 12 min read
How to Stop a Java Thread: Methods, Code Samples, 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.

ExceptionInterruptJava
0 likes · 12 min read
How to Properly Stop a Java Thread: Methods, Examples, and Pitfalls
Selected Java Interview Questions
Selected Java Interview Questions
Dec 3, 2022 · Backend Development

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

This article explains Java's BigDecimal class, covering its constructors, precise arithmetic operations, formatting techniques, common pitfalls with double values, comparison methods, exception handling, and provides a utility class with comprehensive methods for accurate calculations.

ArithmeticBigDecimalException
0 likes · 14 min read
Comprehensive Guide to Java BigDecimal: Constructors, Methods, Formatting, and Common Exceptions
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.

ExceptionJavaLoop
0 likes · 5 min read
Why return in Java 8 forEach Behaves Like continue and How to Properly Terminate the Loop
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
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.

ExceptionJavaSpring Boot
0 likes · 10 min read
How Spring Boot Handles Errors: From /error to Custom Responses