Documentation
¶
Overview ¶
Package errors provides structured error types for tcount.
Index ¶
Constants ¶
View Source
const ( ErrCodeNotFound = "NOT_FOUND" ErrCodeValidation = "VALIDATION" ErrCodeIO = "IO" ErrCodeParse = "PARSE" ErrCodeInternal = "INTERNAL" )
Error codes for categorization.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code string
Message string
Op string
Err error
Fields map[string]any
Hint string
}
Error is a structured error type with code, context, and chain support.
Click to show internal directories.
Click to hide internal directories.