From de50ef71a08c683554cbc8eb5e82deb6217770bb Mon Sep 17 00:00:00 2001 From: zihjiang <21021327+zihjiang@users.noreply.github.com> Date: Sat, 12 Sep 2026 01:48:02 +0800 Subject: [PATCH] gh-136722: Document TurtleGraphicsError --- Doc/library/turtle.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/library/turtle.rst b/Doc/library/turtle.rst index 5dc083c12ccce2b..109717dfe3a61b3 100644 --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -2571,6 +2571,16 @@ Public classes * ``a.rotate(angle)`` rotation +Exceptions +========== + +.. exception:: TurtleGraphicsError + + Raised when an invalid turtle graphics operation is requested, such as + using an unsupported shape or an invalid color value. + This exception inherits from :exc:`Exception`. + + .. _turtle-explanation: Explanation