Skip to content

Update exceptions.rst #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

YourLocalMedic
Copy link
Contributor

Remove vestigial line referring to code that has since changed. remove() used to throw an exception for an empty bag, but now it just returns false because the element that was called to be removed was not present in the bag

Remove vestigial line referring to code that has since changed. remove() used to throw an exception for an empty bag, but now it just returns a sentinel value
@@ -110,7 +110,6 @@ Catching Exceptions
* If someone is using the ``ArraySortedBag`` implementation two years from now, it's not possible to know what they should do to manage the exceptional situations
* The users of the ``ArraySortedBag`` class will need to deal with them as they see fit

* What should be done if calling ``remove`` on an empty ``ArraySortedBag``?
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Things would need to be rewritten a little --- It needs to be
"What should be done if calling removeFirst on an empty ArraySortedBag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants