Skip to content

Commit 47e7837

Browse files
authored
[POV] Update instructions.append.md & Remove Error Message Examples (#3734)
1 parent c7843f5 commit 47e7837

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

exercises/practice/pov/.docs/instructions.append.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,4 @@ Sometimes it is necessary to [raise an exception](https://docs.python.org/3/tuto
66

77
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.
88

9-
To raise a `ValueError` with a message, write the message as an argument to the `exception` type:
10-
11-
```python
12-
# when a tree cannot be oriented to a new node POV
13-
raise ValueError("Tree could not be reoriented")
14-
15-
#when a path cannot be found between a start and end node on the tree.
16-
raise ValueError("No path found")
17-
```
9+
Please check the tests and their expected results carefully.

0 commit comments

Comments
 (0)