Tagged articles
Exception
41 articles · Page 1 of 1
The article explains the difference between Java's Error and Exception classes, clarifies which are recoverable, distinguishes checked and unchecked exceptions, and provides code examples showing how to declare, catch, and handle these exceptions in practice.
CheckedExceptionErrorException
0 likes · 3 min read

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.
ExceptionPHPerror handling
0 likes · 8 min read

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.
ExceptionInterruptJava
0 likes · 12 min read

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

This article explains the distinction between errors and exceptions in Go, outlines when to use error returns versus panic/recover, and provides a series of practical patterns with code examples to write clearer, more maintainable backend code.
BackendExceptionGo
0 likes · 16 min read

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.
BackendExceptiondivision-by-zero
0 likes · 6 min read

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.
Custom HandlerExceptionPHP
0 likes · 17 min read

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

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.
ArithmeticExceptionFormatting
0 likes · 15 min read

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.
ArithmeticExceptionFormatting
0 likes · 13 min read

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.
ExceptionPHPerror handling
0 likes · 4 min read

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.
ExceptionPHPerror handling
0 likes · 7 min read

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.
DebuggingExceptionLogging
0 likes · 6 min read

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 AssertionException
0 likes · 9 min read

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.
ExceptionJavacode reliability
0 likes · 10 min read


JavaEdgeSep 17, 2023 · Backend Development
The article explains how thoughtful error handling—beyond merely throwing exceptions—ensures correct program behavior, data consistency, and user-friendly responses in backend systems, illustrating common pitfalls and robust coding patterns with Java examples.
Data ConsistencyExceptionrobust design
0 likes · 10 min read

The article explains why overusing null‑checks in Java leads to cluttered code, distinguishes between valid and invalid null returns, and recommends using assertions, explicit exceptions, empty collections, or the Null Object pattern to write cleaner, safer backend implementations.
ExceptionJavaNull Object pattern
0 likes · 5 min read

This article explains the Throwable interface, the Error and Exception base classes, their properties and methods, provides a hierarchical overview of PHP exception types, and outlines the upcoming PHP 8.3 release schedule and repository details.
BackendErrorException
0 likes · 6 min read

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.
BackendExceptionerror handling
0 likes · 3 min read

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.
ExceptionInterruptMultithreading
0 likes · 12 min read

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.
ConcurrencyDeprecatedException
0 likes · 12 min read

This article explains the three ways to terminate a Java thread, demonstrates how interrupt flags and isInterrupted() differ, shows how to stop threads using exceptions, sleep interruption, and the deprecated stop() method, and warns about lock‑release issues caused by forceful termination.
ExceptionInterruptJava
0 likes · 12 min read

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.
ArithmeticExceptionJava
0 likes · 14 min read

This article demonstrates how Spring's @Transactional rolls back only RuntimeException subclasses, shows the failure to roll back a checked Exception, and explains how to use rollbackFor to ensure proper transaction rollback for all exception types.
@TransactionalExceptionJava
0 likes · 4 min read

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

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.
ArithmeticExceptionJava
0 likes · 14 min read

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.
ArithmeticExceptionFormatting
0 likes · 15 min read

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.asListExceptionJava
0 likes · 8 min read

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.
BackendExceptionJava
0 likes · 10 min read

This article provides a comprehensive overview of Java fundamentals, covering the relationship between JVM, JRE and JDK, the execution model, bytecode advantages, Java 8 language enhancements, core OOP principles, exception handling, reference types, and practical code examples for developers.
ExceptionJDKJVM
0 likes · 36 min read

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.
C++Exceptionassembly
0 likes · 13 min read

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.
@TransactionalAOPBackend
0 likes · 10 min read

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.
BackendExceptionPHP
0 likes · 3 min read

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

This guide explains Java exception classification, the default rollback behavior of Spring's @Transactional annotation, and how to configure rollback for checked and unchecked exceptions while offering best‑practice recommendations for transactional method design.
@TransactionalExceptionJava
0 likes · 5 min read

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.
Exceptionerror handlingtry-except
0 likes · 6 min read

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.
ExceptionGodefer
0 likes · 6 min read

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.
ExceptionFlinkYARN
0 likes · 8 min read

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.
ConcurrencyExceptionInterrupt
0 likes · 12 min read

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


21CTOJun 12, 2017 · Frontend Development
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.
DebuggingExceptionasynchronous
0 likes · 13 min read
