]> granicus.if.org Git - python/commitdiff
#6880: add reference to classes section in exceptions section, which comes earlier.
authorGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 09:23:04 +0000 (09:23 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 16 Sep 2009 09:23:04 +0000 (09:23 +0000)
Doc/tutorial/errors.rst

index 300cbd14e93953b689b12d2f9ba874dca695a836..a0069f5f6ff22863d0a4701edd047afa69e19806 100644 (file)
@@ -245,9 +245,10 @@ re-raise the exception::
 User-defined Exceptions
 =======================
 
-Programs may name their own exceptions by creating a new exception class.
-Exceptions should typically be derived from the :exc:`Exception` class, either
-directly or indirectly.  For example::
+Programs may name their own exceptions by creating a new exception class (see
+:ref:`tut-classes` for more about Python classes).  Exceptions should typically
+be derived from the :exc:`Exception` class, either directly or indirectly.  For
+example::
 
    >>> class MyError(Exception):
    ...     def __init__(self, value):