Tag

Custom errors

0 views collected around this technical thread.

Raymond Ops
Raymond Ops
Dec 20, 2024 · Fundamentals

Mastering Go Error Handling: From Errors to Panic and Recover

This article explains Go's error handling conventions, including returning error values, creating custom errors with the errors package, using fmt.Errorf, handling runtime panics, and recovering from them with defer, plus advanced patterns like panic‑recover wrappers and closure‑based error management, illustrated with comprehensive code examples.

Custom errorsGobest practices
0 likes · 13 min read
Mastering Go Error Handling: From Errors to Panic and Recover
Tencent IMWeb Frontend Team
Tencent IMWeb Frontend Team
Dec 5, 2017 · Backend Development

Mastering JavaScript Error Objects: Clean Error Handling and Reporting

This article explains how to leverage JavaScript's built‑in Error object and custom error classes to separate normal output from exceptions, improve readability, enable unified handling, and automatically report issues, offering practical code examples for both front‑end and Node.js back‑end development.

Custom errorsException reportingJavaScript
0 likes · 7 min read
Mastering JavaScript Error Objects: Clean Error Handling and Reporting