Home / Function/ globalHandleError() — vue Function Reference

globalHandleError() — vue Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

src/core/util/error.ts lines 56–69

function globalHandleError(err, vm, info) {
  if (config.errorHandler) {
    try {
      return config.errorHandler.call(null, err, vm, info)
    } catch (e: any) {
      // if the user intentionally throws the original error in the handler,
      // do not log it twice
      if (e !== err) {
        logError(e, null, 'config.errorHandler')
      }
    }
  }
  logError(err, vm, info)
}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free