A global error handler can be set up in the config object of the main Vue global. These kinds of error handlers will fore for some errors that happen in rendering and in watchers.
So a global error handler can be set up for vuejs like so.
Although the error handlers in vuejs will work okay with some errors that happen during rendering they will not work for errors in general within the vuejs instance or in the page in general. To handle all errors in the page you will want to attach an event to the window object.