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

Function getFirstException

packages/core/src/utils/misc.ts:59–61  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

57}
58
59function getFirstException(event: Event): Exception | undefined {
60 return event.exception?.values?.[0];
61}
62
63/**
64 * Extracts either message or type+value from an event that can be used for user-facing logs

Callers 2

getEventDescriptionFunction · 0.85
addExceptionMechanismFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected