Add documentation for when an error is raised.