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

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