LogoRobo.js
Framework

ErrorContext

Interface: ErrorContext

Context provided to error hooks. Fires when unhandled errors occur (rejection or exception). Runs in PARALLEL with a short timeout - errors must complete quickly.

Properties

PropertyTypeDescription
envtypeof EnvEnvironment variable access
errorunknownThe error that occurred
loggerLoggerLogger instance (forked for plugins)
modestringCurrent runtime mode
type"unhandledRejection" | "uncaughtException"Type of error: 'unhandledRejection' or 'uncaughtException'

On this page