Skip to content

Commit 0e3085d

Browse files
authored
Added missing exception mechanism property. (#12929)
The `source` property as described in the RFC was missing: https://github.com/getsentry/rfcs/blob/main/text/0079-exception-groups.md#source
1 parent c9cd1f4 commit 0e3085d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

develop-docs/sdk/data-model/event-payloads/exception.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ the root exception (the last to be listed in the exception values).
111111

112112
: An optional flag indicating that this exception is part of an exception group type specific to the platform or language.
113113

114+
`source`
115+
116+
: An optional string value describing the source of the exception. The SDK should populate this with the name of the property or attribute of the parent exception that this exception was acquired from. In the case of an array, it should include the zero-based array index as well.
117+
118+
- Python Examples: `"__context__"`, `"__cause__"`, `"exceptions[0]"`, `"exceptions[1]"`
119+
- .NET Examples: `"InnerException"`, `"InnerExceptions[0]"`, `"InnerExceptions[1]"`
120+
- JavaScript Examples: `"cause"`, `"errors[0]"`, `"errors[1]"`
121+
114122
`meta`
115123

116124
: Optional information from the operating system or runtime on the exception

0 commit comments

Comments
 (0)