Add error throwing docs