{"record":{"id":"73edf3d7ea41eabf","repo":"oven-sh/bun","slug":"no-exception-found","errorCode":null,"errorMessage":"No exception found.","messagePattern":"No exception found\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bun-debug-adapter-protocol/src/debugger/adapter.ts","lineNumber":2000,"sourceCode":"\n    if (set) {\n      const { type } = set;\n      if (type !== \"undefined\") {\n        variables.push(this.#addObject(set, descriptor));\n      }\n    }\n\n    if (symbol) {\n      variables.push(this.#addObject(symbol, descriptor));\n    }\n\n    return variables;\n  }\n\n  async exceptionInfo(): Promise<DAP.ExceptionInfoResponse> {\n    const exception = this.#exception;\n    if (!exception) {\n      throw new Error(\"No exception found.\");\n    }\n\n    const { code, ...details } = await this.#getExceptionDetails(exception);\n    return {\n      exceptionId: code || \"\",\n      breakMode: \"always\",\n      details,\n    };\n  }\n\n  async #getExceptionDetails(variable: Variable): Promise<DAP.ExceptionDetails & { code?: string }> {\n    const properties = await this.#getProperties(variable);\n\n    let fullTypeName: string | undefined;\n    let message: string | undefined;\n    let code: string | undefined;\n    let stackTrace: string | undefined;\n    let innerException: DAP.ExceptionDetails[] | undefined;","sourceCodeStart":1982,"sourceCodeEnd":2018,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/packages/bun-debug-adapter-protocol/src/debugger/adapter.ts#L1982-L2018","documentation":"Thrown by exceptionInfo() when the adapter has no stored paused exception (#exception is unset). It fires when a client requests exception details outside of an exception-triggered pause, where there is no exception to describe.","triggerScenarios":"Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2000 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Only call exceptionInfo while stopped on an exception pause","Set breakOnException in the DAP client so exceptions are captured"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}