InvergeDocs
JavaScriptAPI reference

Errors

Errors in the JavaScript SDK.

// access
nexus.errors
SymbolKindSummary
CaptureOptionsinterface
NexusErrorsclassError & crash monitoring.

CaptureOptions

interface

handled

property
handled?: boolean

level

property
level?: 'error' | 'warning' | 'fatal'

fingerprint

property
fingerprint?: string

context

property
context?: Record<string, unknown>

NexusErrors

class

Error & crash monitoring. install() reports uncaught errors automatically (browser error/unhandledrejection, Node uncaughtException/unhandledRejection).

NexusErrors

constructor
new NexusErrors(http: NexusHttp, id: NexusIdentity, cfg: ResolvedConfig)

Parameters

Prop

Type

Returns NexusErrors

View source

capture()

method
async capture(error: unknown, options: CaptureOptions = {}): Promise<void>

Report an error (handled by default).

Parameters

Prop

Type

View source

install()

method
install(): void

Auto-install global handlers for uncaught errors. Idempotent.

View source

On this page