# Interface ErrorPayload

Payload for error events.

interface ErrorPayload {
type: "error";
errorCode: string;
errorMessage: string;
stack?: string;
recoverable: boolean;
}

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:83

##### Index

### Properties

type
errorCode
errorMessage
stack?
recoverable

## Properties

### `Readonly` type

type: "error"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:84

### `Readonly` errorCode

errorCode: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:85

### `Readonly` errorMessage

errorMessage: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:86

### `Optional` `Readonly` stack

stack?: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:87

### `Readonly` recoverable

recoverable: boolean

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:88