adding resourceError event to docs