Home / Function/ expectErr() — react Function Reference

expectErr() — react Function Reference

Architecture documentation for the expectErr() function in Result.ts from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  5875efa7_29a8_5069_0c8c_bed213facbb5["expectErr()"]
  6143aba4_e943_f966_4659_ccde18cc41ea["OkImpl"]
  5875efa7_29a8_5069_0c8c_bed213facbb5 -->|defined in| 6143aba4_e943_f966_4659_ccde18cc41ea
  2a23fa5c_23b1_0061_88a6_bbf2b547cc97["expectErr()"]
  2a23fa5c_23b1_0061_88a6_bbf2b547cc97 -->|calls| 5875efa7_29a8_5069_0c8c_bed213facbb5
  2a23fa5c_23b1_0061_88a6_bbf2b547cc97["expectErr()"]
  5875efa7_29a8_5069_0c8c_bed213facbb5 -->|calls| 2a23fa5c_23b1_0061_88a6_bbf2b547cc97
  style 5875efa7_29a8_5069_0c8c_bed213facbb5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Utils/Result.ts lines 142–144

  expectErr(msg: string): never {
    throw new Error(`${msg}: ${this.#val}`);
  }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does expectErr() do?
expectErr() is a function in the react codebase, defined in compiler/packages/babel-plugin-react-compiler/src/Utils/Result.ts.
Where is expectErr() defined?
expectErr() is defined in compiler/packages/babel-plugin-react-compiler/src/Utils/Result.ts at line 142.
What does expectErr() call?
expectErr() calls 1 function(s): expectErr.
What calls expectErr()?
expectErr() is called by 1 function(s): expectErr.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free