chainerr

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package chainerr defines custom error types for workflow chain execution and GitHub API operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRunURL

func GetRunURL(err error) string

GetRunURL extracts the run URL from an error chain if present.

func GetSuggestion

func GetSuggestion(err error) string

GetSuggestion extracts a suggestion from an error chain if present.

Types

type APIError

type APIError struct {
	Err       error
	Operation string
	RunID     int64
}

APIError represents an error from a GitHub API operation.

func (*APIError) Error

func (e *APIError) Error() string

func (*APIError) Unwrap

func (e *APIError) Unwrap() error

type ChannelFullError

type ChannelFullError struct {
	Channel string
}

ChannelFullError indicates a channel update was dropped due to full buffer.

func (*ChannelFullError) Error

func (e *ChannelFullError) Error() string

type InterpolationError

type InterpolationError struct {
	Cause error
	Field string
	Value string
}

InterpolationError represents a failure to interpolate template variables.

func (*InterpolationError) Error

func (e *InterpolationError) Error() string

func (*InterpolationError) Unwrap

func (e *InterpolationError) Unwrap() error

type RunWaitError

type RunWaitError struct {
	Cause  error
	RunURL string
	RunID  int64
}

RunWaitError represents an error while waiting for a run to complete.

func (*RunWaitError) Error

func (e *RunWaitError) Error() string

func (*RunWaitError) Unwrap

func (e *RunWaitError) Unwrap() error

type StepDispatchError

type StepDispatchError struct {
	Workflow   string
	Branch     string
	Cause      error
	Suggestion string
}

StepDispatchError represents a failure to dispatch a workflow.

func (*StepDispatchError) Error

func (e *StepDispatchError) Error() string

func (*StepDispatchError) Unwrap

func (e *StepDispatchError) Unwrap() error

type StepExecutionError

type StepExecutionError struct {
	Cause     error
	Workflow  string
	RunURL    string
	StepIndex int
	RunID     int64
}

StepExecutionError represents an error that occurred during step execution.

func (*StepExecutionError) Error

func (e *StepExecutionError) Error() string

func (*StepExecutionError) Unwrap

func (e *StepExecutionError) Unwrap() error

type ValidationBlockedError

type ValidationBlockedError struct {
	Input  string
	Errors []string
}

ValidationBlockedError indicates execution was blocked due to validation errors.

func (*ValidationBlockedError) Error

func (e *ValidationBlockedError) Error() string

Jump to

Keyboard shortcuts

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