failure

package
v1.2.15-prerelease10 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MIT Imports: 5 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"
	HeartBeatBlobSizeLimit      ErrorType = "Heartbeat details has exceeded the blob size limit"
	ActivityOutputBlobSizeLimit ErrorType = "Activity output has exceeded the blob size limit"
	DecisionBlobSizeLimit       ErrorType = "Decision result caused to exceed blob size limit"
)

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"
	DecisionCausedFailure FailureType = "Decision caused failure"
)

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