Documentation
¶
Overview ¶
Package failure defines sanitized failures transported by Ferret Wire.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category uint8
Category identifies a failure category carried explicitly by the Wire protocol. Transport-native conditions such as cancellation are not represented here.
const ( CategoryCompilation Category = iota + 1 CategoryExecution CategoryPlanNotFound CategoryExecutionNotFound CategoryDebugSessionNotFound CategoryConnectionNotFound CategoryInvalidState CategoryInternalRuntime CategoryWatcherLagged CategoryBreakpointNotFound CategorySessionNotFound )
Failure categories preserve the structured conditions represented by the Wire protocol.
type Failure ¶
type Failure struct {
Category Category
Message string
Diagnostics diagnostics.Diagnostics
}
Failure is a sanitized terminal execution or debug failure.
Click to show internal directories.
Click to hide internal directories.