Tag

panic

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

Best PracticesGocustom errors
0 likes · 13 min read
Mastering Go Error Handling: From Errors to Panic and Recover
Architecture Development Notes
Architecture Development Notes
Sep 30, 2024 · Fundamentals

Mastering Rust’s panic! Macro: When and How to Use It Effectively

This article explains Rust's panic! macro, covering how to invoke it, its default behavior, options for stack unwinding versus aborting, practical code examples, and how to use backtraces for debugging, while advising when to prefer Result for recoverable errors.

Resultbacktraceerror handling
0 likes · 8 min read
Mastering Rust’s panic! Macro: When and How to Use It Effectively
Deepin Linux
Deepin Linux
Aug 16, 2024 · Fundamentals

Understanding Linux Kernel Oops, BUG, and Panic: Debugging Techniques and Tools

This article explains Linux kernel crash diagnostics, covering Oops messages, BUG and BUG_ON macros, the die() and panic() pathways, preparation steps for reproducing bugs, kernel configuration options for debugging, and useful memory‑debugging utilities such as MEMWATCH, YAMD, Electric Fence and strace.

Linux kernelOopsbug
0 likes · 26 min read
Understanding Linux Kernel Oops, BUG, and Panic: Debugging Techniques and Tools
Zhuanzhuan Tech
Zhuanzhuan Tech
Feb 23, 2022 · Backend Development

Go Error Handling Practices in ZuanZuan Operations: Usage and Management

This article explains how ZuanZuan's operations team applies Go's error handling mechanisms—including error values, panic/recover, sentinel errors, and custom error types—along with practical guidelines and code examples to improve reliability and maintainability of production services.

Backend DevelopmentGoerror handling
0 likes · 13 min read
Go Error Handling Practices in ZuanZuan Operations: Usage and Management
政采云技术
政采云技术
Dec 2, 2021 · Backend Development

Understanding Go's Error Handling: Design, Best Practices, and Common Pitfalls

This article explains the design of Go's error type, why errors are returned as pointers, compares error handling across languages, discusses panic, wild goroutines, sentinel and custom errors, and presents practical guidelines such as processing errors once, eliminating redundant checks, and wrapping errors for richer context.

Best PracticesGobackend
0 likes · 13 min read
Understanding Go's Error Handling: Design, Best Practices, and Common Pitfalls
Xueersi Online School Tech Team
Xueersi Online School Tech Team
Feb 26, 2021 · Backend Development

Understanding Golang v1.0 Coroutine Implementation: Creation, Switching, and Runtime Mechanics

This article explains the internal workings of Golang v1.0 coroutines, covering their creation, stack‑switching logic, scheduler design, virtual‑memory basics, assembly examples, channel handling, socket event loops, and the low‑level implementation of defer, panic, and recover.

ConcurrencySchedulerassembly
0 likes · 33 min read
Understanding Golang v1.0 Coroutine Implementation: Creation, Switching, and Runtime Mechanics
360 Tech Engineering
360 Tech Engineering
Apr 13, 2020 · Backend Development

Understanding Exception and Error Handling in Go

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
Understanding Exception and Error Handling in Go