Constructor ErrorInfo
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
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.
public ErrorInfo(string ComponentStack)
Parameters
ComponentStackstringMulti-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.