errors

package
v1.18.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const ErrorTypeHistoryTampered = "DAPR_WORKFLOW_HISTORY_TAMPERED"

ErrorTypeHistoryTampered is the well-known FailureDetails.ErrorType set on workflows that are marked failed because their persisted history or signing state was detected as tampered. Clients can match on this constant to programmatically detect the failure mode.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationError

type ConfigurationError struct {
	// contains filtered or unexported fields
}

ConfigurationError is returned by LoadWorkflowState when the workflow state is intact but cannot be loaded under the host's current configuration. This covers the one-way signing commitment (a signed workflow on a non-signing host, or vice versa) and missing app ID configuration. The workflow data is not tampered, so the tombstone recovery path must not run; the operator is expected to fix the config.

func NewConfigurationError

func NewConfigurationError(err error) *ConfigurationError

func (*ConfigurationError) Error

func (e *ConfigurationError) Error() string

func (*ConfigurationError) Unwrap

func (e *ConfigurationError) Unwrap() error

type VerificationError

type VerificationError struct {
	// contains filtered or unexported fields
}

VerificationError is returned by LoadWorkflowState when the persisted workflow state has been tampered with: signature chain verification has failed, signing material is missing, metadata bounds are exceeded, or inbox events do not match signed history. The recovery action is to mark the workflow as FAILED via [state.MarkAsTamperFailed].

The State (when available) is returned alongside this error so callers can scope the tombstone-write transaction to the existing keys.

func NewVerificationError

func NewVerificationError(err error) *VerificationError

func (*VerificationError) Error

func (e *VerificationError) Error() string

func (*VerificationError) Unwrap

func (e *VerificationError) Unwrap() error

Jump to

Keyboard shortcuts

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