I often write functions in my ~/.vimrc or in ~/.vim/autoload/myfunctions.vim, which when executed result in an error such as:  Error detected while processing function SomeFunction:line   xx:Those errors can be read in the output of the Ex command :messages.Is there a way to populate the quickfix list with them, so that I can type :copen, navigate through them, hit Enter on one, and be automatically redirected to the file and line where an error has been raised?
Is it possible to populate the quickfix list with the errors of vimscript functions?
vimscript
A recent question on SO inspired me to develop a function that decodes v:throwpoint that I use in a new logger that fills the quickfix list, and my unit testing framework for vim.This can be used to enhance romainl's answer in order to decode file+line from error messages.function! Bar() abort    barendfunctionfunction! Foo()  try    call Bar()  catch /.*/    let bt = lh#exception#callstack(v:throwpoint)    let data = map(copy(bt), '{filename: v:val.script, text: called from here, lnum: v:val.pos}')    let data[0].text = v:exception    call setqflist(data)  endtryendfunction