Tagged articles

exception handling

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

JavaZuulbackend
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 FilterJavaZuul
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