Skip to content
File

Blob: src/workerd/jsg/exception-metadata.capnp

465 bytes
1@0xa9ae63464030fcef;
2# Schema for JavaScript exception metadata passed through KJ exception details
3 
4using Cxx = import "/capnp/c++.capnp";
5$Cxx.namespace("workerd::jsg");
6$Cxx.allowCancellation;
7 
8struct JsExceptionMetadata {
9 # JavaScript error type (e.g., "Error", "TypeError", "RangeError")
10 errorType @0 :Text;
11 
12 # Full stack trace string as produced by V8
13 # Example: "Error: User-thrown exception\n at Object.fetch (foo:4:11)"
14 stackTrace @1 :Text;
15}