handleError() — vue Function Reference
Architecture documentation for the handleError() function in error.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD d7e380c9_1d94_4f54_9ce8_7ba29b261101["handleError()"] 672bd90b_9403_b6bf_f187_b5f0805970e0["invokeWithErrorHandling()"] 672bd90b_9403_b6bf_f187_b5f0805970e0 -->|calls| d7e380c9_1d94_4f54_9ce8_7ba29b261101 1cefcbb5_8da7_601a_1ead_879af025d954["nextTick()"] 1cefcbb5_8da7_601a_1ead_879af025d954 -->|calls| d7e380c9_1d94_4f54_9ce8_7ba29b261101 4a87a208_8bf5_28ff_be4d_8df11d928f69["pushTarget()"] d7e380c9_1d94_4f54_9ce8_7ba29b261101 -->|calls| 4a87a208_8bf5_28ff_be4d_8df11d928f69 a4857a27_f4e1_da07_9062_bb12aec29773["globalHandleError()"] d7e380c9_1d94_4f54_9ce8_7ba29b261101 -->|calls| a4857a27_f4e1_da07_9062_bb12aec29773 f933dbd4_cb05_cc5c_162b_7ab5e35d316d["popTarget()"] d7e380c9_1d94_4f54_9ce8_7ba29b261101 -->|calls| f933dbd4_cb05_cc5c_162b_7ab5e35d316d style d7e380c9_1d94_4f54_9ce8_7ba29b261101 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
Called By
Source
Frequently Asked Questions
What does handleError() do?
handleError() is a function in the vue codebase.
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