MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / eventFromError

Function eventFromError

packages/browser/src/eventbuilder.ts:101–107  ·  view source on GitHub ↗
(stackParser: StackParser, ex: Error)

Source from the content-addressed store, hash-verified

99}
100
101function eventFromError(stackParser: StackParser, ex: Error): Event {
102 return {
103 exception: {
104 values: [exceptionFromError(stackParser, ex)],
105 },
106 };
107}
108
109/** Parses stack frames from an error */
110function parseStackFrames(

Callers 1

eventFromUnknownInputFunction · 0.85

Calls 1

exceptionFromErrorFunction · 0.70

Tested by

no test coverage detected