onerror

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const PayloadType = "onError.triggered"

PayloadType is the event type emitted whenever the trigger fires.

View Source
const TriggerName = "onError"

TriggerName is the registered name of the On Error trigger.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnError

type OnError struct{}

OnError is a canvas-wide error handler. It is not wired through edges like a regular trigger; instead, whenever any execution in the canvas finishes with an "error" result (the component could not execute), the failure path emits a root event on every OnError node in that canvas. See contexts.DispatchOnError.

func (*OnError) Cleanup

func (t *OnError) Cleanup(ctx core.TriggerContext) error

func (*OnError) Color

func (t *OnError) Color() string

func (*OnError) Configuration

func (t *OnError) Configuration() []configuration.Field

func (*OnError) Description

func (t *OnError) Description() string

func (*OnError) Documentation

func (t *OnError) Documentation() string

func (*OnError) ExampleData

func (t *OnError) ExampleData() map[string]any

func (*OnError) HandleHook

func (t *OnError) HandleHook(ctx core.TriggerHookContext) (map[string]any, error)

func (*OnError) HandleWebhook

func (t *OnError) HandleWebhook(ctx core.WebhookRequestContext) (int, *core.WebhookResponseBody, error)

func (*OnError) Hooks

func (t *OnError) Hooks() []core.Hook

func (*OnError) Icon

func (t *OnError) Icon() string

func (*OnError) Label

func (t *OnError) Label() string

func (*OnError) Name

func (t *OnError) Name() string

func (*OnError) Setup

func (t *OnError) Setup(ctx core.TriggerContext) error

Jump to

Keyboard shortcuts

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