TypeError, ReferenceError)..catch().network source) are filtered to avoid data pollution.addError API, you can manually report handled exceptions, custom errors, or other errors not automatically captured. Manual reporting is suitable for the following scenarios:addError API in componentDidCatch, attaching component stack information for debugging.| Property | Type | Description |
|---|---|---|
error.source | string | Error source (such as console, network, custom, source, report). |
error.type | string | Error type or error code (such as TypeError, NetworkError). |
error.message | string | Concise, highly readable error message. |
error.stack | string | Error stack trace or supplementary information. |
error.causes | Array | List of associated errors providing additional context (optional). |
context | Object | Custom contextual information (such as page state, user ID), passed through addError. |
source as custom, source, report, or console.network sources.beforeSend callback to customize error handling logic, filter or modify error data.sourcemap is correctly uploaded; if not, the stack may not be properly resolved.beforeSend callback to filter specific error sources or messages.fingerprint property is correctly set and its value is a string.beforeSend callback is being correctly called.addError to facilitate problem localization.{ userId: "12345", action: "submit_form" }.beforeSend to filter low-value errors and avoid data overload.