Table of Contents

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
object
ErrorInfo

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 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.

ErrorBoundary

The name of the Error Boundary that caught the exception, written as a ComponentStack line is without its at prefix — React's errorBoundary. Empty for an error no boundary caught.