Tagged articles

Exception Handling

417 articles · Page 5 of 5
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.

Exception Handlingasserterrors
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.

DocumentationException HandlingModel abstraction
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 Handlingcoding standardsjava
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 HandlingFrontendJavaScript
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.

Exception HandlingSpring CloudZuul
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.

Error FilterException HandlingSpring Cloud
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.

Exception HandlingPythonassert
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 Handlingbest-practices
0 likes · 10 min read
Effective Exception Handling in Java: Principles and Practices