handleError() — vue Function Reference
Architecture documentation for the handleError() function in error.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 4935dbd4_998d_c5cd_41c0_2e16500a201c["handleError()"] 34ce4c45_a0c3_08f3_7cbe_679778705432["error.ts"] 4935dbd4_998d_c5cd_41c0_2e16500a201c -->|defined in| 34ce4c45_a0c3_08f3_7cbe_679778705432 ceab10d8_e3b3_eb2d_840f_d5b199af5a26["invokeWithErrorHandling()"] ceab10d8_e3b3_eb2d_840f_d5b199af5a26 -->|calls| 4935dbd4_998d_c5cd_41c0_2e16500a201c a701411a_9fc9_8597_c21b_049eea5dbe2a["nextTick()"] a701411a_9fc9_8597_c21b_049eea5dbe2a -->|calls| 4935dbd4_998d_c5cd_41c0_2e16500a201c 46145e02_0be2_a179_3c66_d786e8df82f3["pushTarget()"] 4935dbd4_998d_c5cd_41c0_2e16500a201c -->|calls| 46145e02_0be2_a179_3c66_d786e8df82f3 9db720c7_a19e_a472_7cd0_4396e7abb040["globalHandleError()"] 4935dbd4_998d_c5cd_41c0_2e16500a201c -->|calls| 9db720c7_a19e_a472_7cd0_4396e7abb040 f641f94c_5096_9084_3285_10f3d148c139["popTarget()"] 4935dbd4_998d_c5cd_41c0_2e16500a201c -->|calls| f641f94c_5096_9084_3285_10f3d148c139 style 4935dbd4_998d_c5cd_41c0_2e16500a201c 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