Added documentation comments for errors.