Home / Function/ unwrapErr() — react Function Reference

unwrapErr() — react Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5f82000a_eb89_7cd8_e409_799cfe1f93e6["unwrapErr()"]
  6143aba4_e943_f966_4659_ccde18cc41ea["OkImpl"]
  5f82000a_eb89_7cd8_e409_799cfe1f93e6 -->|defined in| 6143aba4_e943_f966_4659_ccde18cc41ea
  7dd8eefb_2237_6426_9d5d_a2c0267dc003["unwrapErr()"]
  7dd8eefb_2237_6426_9d5d_a2c0267dc003 -->|calls| 5f82000a_eb89_7cd8_e409_799cfe1f93e6
  f214c28b_2f6d_b5a3_71e1_9a69d9b50455["lower()"]
  f214c28b_2f6d_b5a3_71e1_9a69d9b50455 -->|calls| 5f82000a_eb89_7cd8_e409_799cfe1f93e6
  7dd8eefb_2237_6426_9d5d_a2c0267dc003["unwrapErr()"]
  5f82000a_eb89_7cd8_e409_799cfe1f93e6 -->|calls| 7dd8eefb_2237_6426_9d5d_a2c0267dc003
  style 5f82000a_eb89_7cd8_e409_799cfe1f93e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

compiler/packages/babel-plugin-react-compiler/src/Utils/Result.ts lines 158–163

  unwrapErr(): never {
    if (this.#val instanceof Error) {
      throw this.#val;
    }
    throw new Error(`Can't unwrap \`Ok\` to \`Err\`: ${this.#val}`);
  }

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free