handleError() — vue Function Reference
Architecture documentation for the handleError() function in error.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 09b66670_60c6_d4f1_48f9_8f5538b7633e["handleError()"] 88dc54e4_4a50_ce50_5fb5_52118613323e["error.ts"] 09b66670_60c6_d4f1_48f9_8f5538b7633e -->|defined in| 88dc54e4_4a50_ce50_5fb5_52118613323e 6eecb592_f725_6228_0c5d_72897e6929aa["invokeWithErrorHandling()"] 6eecb592_f725_6228_0c5d_72897e6929aa -->|calls| 09b66670_60c6_d4f1_48f9_8f5538b7633e 8962b3f5_7552_fd40_f54b_577feeb9a23e["nextTick()"] 8962b3f5_7552_fd40_f54b_577feeb9a23e -->|calls| 09b66670_60c6_d4f1_48f9_8f5538b7633e d9fae33f_7845_7289_de16_bee11c7f60e1["pushTarget()"] 09b66670_60c6_d4f1_48f9_8f5538b7633e -->|calls| d9fae33f_7845_7289_de16_bee11c7f60e1 82299dab_8ae1_d92d_8e68_1b102e807ad1["globalHandleError()"] 09b66670_60c6_d4f1_48f9_8f5538b7633e -->|calls| 82299dab_8ae1_d92d_8e68_1b102e807ad1 e4823f37_5db2_5310_aa9c_5b3593b02b07["popTarget()"] 09b66670_60c6_d4f1_48f9_8f5538b7633e -->|calls| e4823f37_5db2_5310_aa9c_5b3593b02b07 style 09b66670_60c6_d4f1_48f9_8f5538b7633e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/core/util/error.ts lines 7–32
export function handleError(err: Error, vm: any, info: string) {
// Deactivate deps tracking while processing error handler to avoid possible infinite rendering.
// See: https://github.com/vuejs/vuex/issues/1505
pushTarget()
try {
if (vm) {
let cur = vm
while ((cur = cur.$parent)) {
const hooks = cur.$options.errorCaptured
if (hooks) {
for (let i = 0; i < hooks.length; i++) {
try {
const capture = hooks[i].call(cur, err, vm, info) === false
if (capture) return
} catch (e: any) {
globalHandleError(e, cur, 'errorCaptured hook')
}
}
}
}
}
globalHandleError(err, vm, info)
} finally {
popTarget()
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does handleError() do?
handleError() is a function in the vue codebase, defined in src/core/util/error.ts.
Where is handleError() defined?
handleError() is defined in src/core/util/error.ts at line 7.
What does handleError() call?
handleError() calls 3 function(s): globalHandleError, popTarget, pushTarget.
What calls handleError()?
handleError() is called by 2 function(s): invokeWithErrorHandling, nextTick.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free