Custom code on exception, for all controllers

I am currently looking at:

handleError(error: Error, message: string, detail: object) {
  console.error(`%s\n\n%o\n\n%o`, message, error, detail)
}

This is definitely where I would like to add a call to Rollbar.error(). How could I override this Application function?