added resourceError documentation