Skip to content

Commit

Permalink
[POV] Update instructions.append.md & Remove Error Message Examples (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
BethanyG authored Jul 8, 2024
1 parent c7843f5 commit 47e7837
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions exercises/practice/pov/.docs/instructions.append.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ Sometimes it is necessary to [raise an exception](https://docs.python.org/3/tuto

This particular exercise requires that you use the [raise statement](https://docs.python.org/3/reference/simple_stmts.html#the-raise-statement) to "throw" multiple `ValueErrors` if the `Tree()` class is passed a tree that cannot be reoriented, or a path cannot be found between a `start node` and an `end node`. The tests will only pass if you both `raise` the `exception` and include a message with it.

To raise a `ValueError` with a message, write the message as an argument to the `exception` type:

```python
# when a tree cannot be oriented to a new node POV
raise ValueError("Tree could not be reoriented")

#when a path cannot be found between a start and end node on the tree.
raise ValueError("No path found")
```
Please check the tests and their expected results carefully.

0 comments on commit 47e7837

Please sign in to comment.