Home / Function/ constructor() — react Function Reference

constructor() — react Function Reference

Architecture documentation for the constructor() function in PermissionNotGrantedError.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  d93a496b_b5a9_465c_856b_ddc2a1288b73["constructor()"]
  209793b1_c3c0_adbf_e65b_b5a808cce070["PermissionNotGrantedError"]
  d93a496b_b5a9_465c_856b_ddc2a1288b73 -->|defined in| 209793b1_c3c0_adbf_e65b_b5a808cce070
  style d93a496b_b5a9_465c_856b_ddc2a1288b73 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-devtools-shared/src/errors/PermissionNotGrantedError.js lines 11–20

  constructor() {
    super("User didn't grant the required permission to perform an action");

    // Maintains proper stack trace for where our error was thrown (only available on V8)
    if (Error.captureStackTrace) {
      Error.captureStackTrace(this, PermissionNotGrantedError);
    }

    this.name = 'PermissionNotGrantedError';
  }

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the react codebase, defined in packages/react-devtools-shared/src/errors/PermissionNotGrantedError.js.
Where is constructor() defined?
constructor() is defined in packages/react-devtools-shared/src/errors/PermissionNotGrantedError.js at line 11.

Analyze Your Own Codebase

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

Try Supermodel Free