Skip to content

Documentation / @agentick/shared / ReactivityError

Class: ReactivityError

Defined in: errors.ts:643

Error thrown for reactivity/signal system issues.

Example

typescript
throw new ReactivityError('Circular dependency detected in computed signal');
throw new ReactivityError('Attempted to set disposed signal', 'REACTIVITY_DISPOSED');

Extends

Constructors

Constructor

new ReactivityError(message, code?, details?, cause?): ReactivityError

Defined in: errors.ts:644

Parameters

message

string

code?

"REACTIVITY_CIRCULAR" | "REACTIVITY_DISPOSED"

details?

Record<string, unknown> = {}

cause?

Error

Returns

ReactivityError

Overrides

AgentickError.constructor

Properties

cause?

readonly optional cause: Error

Defined in: errors.ts:108

Original error that caused this error

Inherited from

AgentickError.cause


code

readonly code: AgentickErrorCode

Defined in: errors.ts:102

Unique error code for programmatic handling

Inherited from

AgentickError.code


details

readonly details: Record<string, unknown>

Defined in: errors.ts:105

Additional error details

Inherited from

AgentickError.details

Methods

circular()

static circular(signalName?): ReactivityError

Defined in: errors.ts:657

Create circular dependency error

Parameters

signalName?

string

Returns

ReactivityError


fromJSON()

static fromJSON(json): AgentickError

Defined in: errors.ts:169

Create error from serialized format

Parameters

json

SerializedAgentickError

Returns

AgentickError

Inherited from

AgentickError.fromJSON


toJSON()

toJSON(): SerializedAgentickError

Defined in: errors.ts:137

Serialize error for transport (JSON-safe)

Returns

SerializedAgentickError

Inherited from

AgentickError.toJSON

Released under the ISC License.