Adapter SDK

Adapter Errors

Error classes specific to the adapter SDK.

Adapter Errors

The adapter SDK adds its own error classes on top of the bridge-sdk errors.

Hierarchy

AdapterError
├── AdapterConfigError        — Invalid adapter configuration
├── AdapterStoreError         — Database operation failure
└── AdapterOrchestratorError  — Event handler failure

AdapterError

Base class for all adapter errors.

class AdapterError extends Error {
  readonly code: string
}

AdapterConfigError

Thrown when adapter configuration is invalid (missing required fields, incompatible options).

class AdapterConfigError extends AdapterError

AdapterStoreError

Thrown when a database operation fails (corrupt DB, constraint violation, disk full).

class AdapterStoreError extends AdapterError

AdapterOrchestratorError

Thrown when an event handler encounters an unrecoverable error.

class AdapterOrchestratorError extends AdapterError {
  readonly handler: string          // which handler failed
  readonly conversationId?: string  // which session, if known
}
Bridge-level errors (BridgeApiError, BridgeConnectError, etc.) are re-exported from @oro.ad/bridge-adapter-sdk — no need to import from bridge-sdk separately.