Home / Function/ logError() — vue Function Reference

logError() — vue Function Reference

Architecture documentation for the logError() function in error.ts from the vue codebase.

Entity Profile

Dependency Diagram

graph TD
  b36805b5_cce0_cca8_665d_421cf3d06f87["logError()"]
  34ce4c45_a0c3_08f3_7cbe_679778705432["error.ts"]
  b36805b5_cce0_cca8_665d_421cf3d06f87 -->|defined in| 34ce4c45_a0c3_08f3_7cbe_679778705432
  9db720c7_a19e_a472_7cd0_4396e7abb040["globalHandleError()"]
  9db720c7_a19e_a472_7cd0_4396e7abb040 -->|calls| b36805b5_cce0_cca8_665d_421cf3d06f87
  e8b22500_20a5_2e19_4c79_386004841499["warn()"]
  b36805b5_cce0_cca8_665d_421cf3d06f87 -->|calls| e8b22500_20a5_2e19_4c79_386004841499
  style b36805b5_cce0_cca8_665d_421cf3d06f87 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

src/core/util/error.ts lines 71–81

function logError(err, vm, info) {
  if (__DEV__) {
    warn(`Error in ${info}: "${err.toString()}"`, vm)
  }
  /* istanbul ignore else */
  if (inBrowser && typeof console !== 'undefined') {
    console.error(err)
  } else {
    throw err
  }
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does logError() do?
logError() is a function in the vue codebase, defined in src/core/util/error.ts.
Where is logError() defined?
logError() is defined in src/core/util/error.ts at line 71.
What does logError() call?
logError() calls 1 function(s): warn.
What calls logError()?
logError() is called by 1 function(s): globalHandleError.

Analyze Your Own Codebase

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

Try Supermodel Free