DocumentationThrowscomponent

DocumentationThrows({ throws }: DocumentationThrowsProps): ReactNode
ParamType
propsDocumentationThrowsProps
Props for DocumentationThrows — the @throws entries to render, one row each. required
    .throwsImmutableArray<DocumentationThrow>
Throw entries to render — one row per documented thrown type. readonly
Return
ReactNode
A <Section> containing the throws table, or null when there are none.

Render a documented symbol's @throws entries as a scrollable table — one row per thrown type.

  • Self-contained: pulls its own copy of the tree map from useTreeMap() so the Type column can link each type to its documented page via TreeLink (exact-match only; compound or builtin types stay plain text).
  • A row with no hand-written description falls back to the referenced type's own description.
  • Renders nothing when there are no throw entries.

Examples

<DocumentationThrows throws={throws} />