# Interface NexusErrorOptions

Options for creating a NexusError.

interface NexusErrorOptions {
code: ErrorCode;
cause?: Error;
context?: Record<string, unknown>;
}

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

##### Index

### Properties

code
cause?
context?

## Properties

### code

code: ErrorCode

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

### `Optional` cause

cause?: Error

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

### `Optional` context

context?: Record<string, unknown>

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