Home / Function/ globalHandleError() — vue Function Reference

globalHandleError() — vue Function Reference

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

Function typescript VueCore GlobalAPI calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  82299dab_8ae1_d92d_8e68_1b102e807ad1["globalHandleError()"]
  88dc54e4_4a50_ce50_5fb5_52118613323e["error.ts"]
  82299dab_8ae1_d92d_8e68_1b102e807ad1 -->|defined in| 88dc54e4_4a50_ce50_5fb5_52118613323e
  09b66670_60c6_d4f1_48f9_8f5538b7633e["handleError()"]
  09b66670_60c6_d4f1_48f9_8f5538b7633e -->|calls| 82299dab_8ae1_d92d_8e68_1b102e807ad1
  21a09cd4_4675_8ab5_49f1_6dfe32d31bf4["logError()"]
  82299dab_8ae1_d92d_8e68_1b102e807ad1 -->|calls| 21a09cd4_4675_8ab5_49f1_6dfe32d31bf4
  style 82299dab_8ae1_d92d_8e68_1b102e807ad1 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