Table of Contents

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

ComponentStack string

Multi-line string listing the throwing fiber and its ancestors up to the outermost component of the tree passed to V.Mount; the root V.Mount makes 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 format at TypeName.MethodName. The first line is the component the failing render, effect or callback belongs to; subsequent lines walk up via ComponentFiber.Parent.