failurechain

package
v1.0.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package failurechain supplies an enriched application error for Durable Task Scheduler failure-chain tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeafError

type LeafError struct {
	Message    string
	ErrorType  api.ErrorType
	Stack      string
	Properties map[string]any
	// IsNonRetriable backs the NonRetriable marker method, which cannot share
	// the field's name.
	IsNonRetriable bool
}

LeafError is an application error that opts into every durable failure enrichment hook: a stable cross-language error type, a stack trace, custom properties, and the non-retriable marker. Tests reuse it so the same leaf contract is exercised against a live service.

func (*LeafError) DurableTaskErrorProperties

func (e *LeafError) DurableTaskErrorProperties() map[string]any

func (*LeafError) DurableTaskErrorType

func (e *LeafError) DurableTaskErrorType() api.ErrorType

func (*LeafError) DurableTaskStackTrace

func (e *LeafError) DurableTaskStackTrace() string

func (*LeafError) Error

func (e *LeafError) Error() string

func (*LeafError) NonRetriable

func (e *LeafError) NonRetriable() bool

NonRetriable reports the marker the durable retry policy consults.

Jump to

Keyboard shortcuts

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