Class ErrorInfo
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
Diagnostic data passed to Hooks.UseFallback's 2-arg overload and to
OnCaughtError when an Error Boundary catches a descendant's exception, and to
OnUncaughtError when none does.
public sealed record ErrorInfo
- Inheritance
-
objectErrorInfo
Constructors
- ErrorInfo(string)
Diagnostic data passed to
Hooks.UseFallback's 2-arg overload and to OnCaughtError when an Error Boundary catches a descendant's exception, and to OnUncaughtError when none does.
Properties
- ComponentStack
Multi-line string listing the throwing fiber and its ancestors up to the outermost component of the tree passed to
V.Mount; the rootV.Mountmakes is not listed, as React's stack leaves out the root, and an error the root itself raises has an empty stack. Each line follows the formatat TypeName.MethodName. The first line is the component the failing render, effect or callback belongs to; subsequent lines walk up viaComponentFiber.Parent.
- ErrorBoundary
The name of the Error Boundary that caught the exception, written as a ComponentStack line is without its
atprefix — React'serrorBoundary. Empty for an error no boundary caught.