actionableerror

package
v0.39.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package actionableerror owns the stable CLI/MCP recovery guidance envelope.

Index

Constants

View Source
const SchemaVersionV1 = "stackkit.actionable-error/v1"

Variables

This section is empty.

Functions

This section is empty.

Types

type Contract

type Contract struct {
	SchemaVersion string   `json:"schemaVersion"`
	Code          string   `json:"code"`
	ReasonCode    string   `json:"reasonCode"`
	Message       string   `json:"message"`
	UserGuidance  []string `json:"userGuidance"`
	Retryable     bool     `json:"retryable"`
	// RetryAfter is the RFC 3339 UTC time an external authority named for the
	// next attempt; it is omitted when no authority named one.
	RetryAfter string `json:"retryAfter,omitempty"`
}

func New

func New(code, reason, message string, guidance []string, retryable bool) Contract

func (Contract) Validate

func (c Contract) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL