Property OnUncaughtError
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
OnUncaughtError
Called when the tree unmounts for an error no error boundary in it caught — React's
onUncaughtError. It is called once the tree has unmounted, with the exception and an
ErrorInfo carrying the component stack and an empty ErrorBoundary.
An error an effect cleanup throws while that unmount runs is reported after it, and one thrown while
Dispose() runs is reported once every cleanup has run. When null, the exception
is logged with Debug.LogException, and in the Editor and a development build a warning naming the
component that threw follows it, as React's development build warns. An exception the handler throws is
logged.
public Action<Exception, ErrorInfo>? OnUncaughtError { get; init; }
Property Value
- Action<Exception, ErrorInfo>