Exception handling with composition api based library

I was messing around with swrv and am not clear how to handle exceptions thrown while retrieving data.

Currently, I have an error handler in my vue config that creates formatted modal dialogs based on the error type, however exceptions thrown here don’t reach the vue error handler and instead are passed back through the error object returned by the library.

What is the optimal way to introduce my error handler here such that a modal can be shown? Using a watch accomplishes it, however it seems naive?

setup() {
  const { data, error } = useSWRV('myKey', getStuff, { refreshInterval: 2500 });

  watchEffect(() => {
    throw error.value;

  return {
    stuff: { data, error }