'handler-threw' ​Contract 2.0.0 · package sha256
a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e· generated fromconfigurator-runtime.d.ts,tables/problems.jsonandservices/onsite-scripter/scripts/contract-docs-what-to-do.jsonbyservices/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.
A member of ProblemCode · stable · since 2.0.0
An event handler or frame hook threw (a hook that throws 3 frames in a row is removed: 'hook-removed').
Catch inside your session.on handler or onFrame hook: its throw is recorded and swallowed (a hook that throws on 3 frames in a row is removed).
session.on('committed', (e) => { try { render(e); } catch (error) { console.error(error); } }, { signal });
Events.problem: A 'handler-threw', 'handler-async' or 'handler-rejected' that a 'problem' handler caused, and any Problem of an operation it called, is recorded but fires no 'problem' event.Problem.event: The event name, for 'handler-threw', 'handler-async', 'handler-rejected' and 'unknown-event'.Session.on: Errors: an unknown event records 'unknown-event' and returns a no-op unsubscribe; a handler that throws records 'handler-threw', one that returns a Promise 'handler-async', and that Promise's rejection 'handler-rejected'.Session.onFrame: A hook that throws on 3 frames in a row is removed ('handler-threw' each time, then 'hook-removed').The set is open: handle a code you don't know ('other').