Tagged articles

exception handling

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

Best PracticesPythonerror handling
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.

JSONexception handlinggobox
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++Thread PriorityThreadStart
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 DevelopmentPerformance Monitoring
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.

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

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

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

ControllerAdviceJavaSpring MVC
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.

ConcurrencyCore ConceptsIO
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.

Pythoncontext managerexception handling
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.

Best PracticesThrowexception 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 abstractioncareer growthdocumentation
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)
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.

JavaScriptWeb Performanceerror monitoring
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.

BackendJavaSpring Cloud
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.

BackendError FilterJava
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.

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

Javaexception handlingresource-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.

Javabest-practicesdebugging
0 likes · 10 min read
Effective Exception Handling in Java: Principles and Practices