Error Handling

Go error handling — error interface, custom error types, wrapping, sentinel errors, errors.Is/As, panic/recover. TRIGGER when: user asks about Go error handling, if err != nil, custom errors, error wrapping, fmt.Errorf %w, errors.Is, errors.As, sentinel errors, panic recover, when to panic in Go, error types in Go, Go error best practices, Go error propagation, error chains, Go error interface, handling errors in Go, Go error patterns. DO NOT USE when: user needs general error-handling philosophy outside Go, or panic/recover questions unrelated to Go's error interface.

bsene 1d1bb6d 2 files · 10.1 KB Updated

File contents

bsene/skills-old/tree/main/golang/error-handling commit 1d1bb6d61f

Frequently asked questions

npx skillmds@latest add bsene/error-handling