failure

package
v1.2.15-prerelease07 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorType

type ErrorType string
const (
	CustomError  ErrorType = "The failure is caused by a specific custom error returned from the service code"
	GenericError ErrorType = "The failure is because of an error returned from the service code"
	PanicError   ErrorType = "The failure is caused by a panic in the service code"
	TimeoutError ErrorType = "The failure is caused by a timeout during the execution"
)

func ErrorTypeFromReason

func ErrorTypeFromReason(reason string) ErrorType

func (ErrorType) String

func (e ErrorType) String() string

type Failure

type Failure invariant.Invariant

Failure is an invariant that will be used to identify the different failures in the workflow execution history

func NewInvariant

func NewInvariant(p Params) Failure

type FailureMetadata

type FailureMetadata struct {
	Identity          string
	ActivityScheduled *types.ActivityTaskScheduledEventAttributes
	ActivityStarted   *types.ActivityTaskStartedEventAttributes
}

type FailureType

type FailureType string
const (
	ActivityFailed FailureType = "Activity Failed"
	WorkflowFailed FailureType = "Workflow Failed"
)

func (FailureType) String

func (f FailureType) String() string

type Params

type Params struct {
	WorkflowExecutionHistory *types.GetWorkflowExecutionHistoryResponse
	Domain                   string
}

Jump to

Keyboard shortcuts

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