# Interface SerializedError

Serialized error format for JSON output.

interface SerializedError {
name: string;
code: ErrorCode;
message: string;
context?: Record<string, unknown>;
cause?: SerializedError;
stack?: string;
}

- Defined in packages/nexus-agents/src/core/errors.ts:70

##### Index

### Properties

name
code
message
context?
cause?
stack?

## Properties

### name

name: string

- Defined in packages/nexus-agents/src/core/errors.ts:71

### code

code: ErrorCode

- Defined in packages/nexus-agents/src/core/errors.ts:72

### message

message: string

- Defined in packages/nexus-agents/src/core/errors.ts:73

### `Optional` context

context?: Record<string, unknown>

- Defined in packages/nexus-agents/src/core/errors.ts:74

### `Optional` cause

cause?: SerializedError

- Defined in packages/nexus-agents/src/core/errors.ts:75

### `Optional` stack

stack?: string

- Defined in packages/nexus-agents/src/core/errors.ts:76