File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,14 @@ Irit Katriel, Yury Selivanov and Guido van Rossum.)
187
187
188
188
189
189
PEP 678: Exceptions can be enriched with notes
190
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
191
-
192
- The :meth: `add_note ` method was added to :exc: `BaseException `. It can be
193
- used to enrich exceptions with context information which is not available
194
- at the time when the exception is raised. The notes added appear in the
195
- default traceback. See :pep: `678 ` for more details. (Contributed by
196
- Irit Katriel in :issue: `45607 `.)
190
+ ----------------------------------------------
191
+
192
+ The :meth: `~BaseException.add_note ` method is added to :exc: `BaseException `.
193
+ It can be used to enrich exceptions with context information
194
+ that is not available at the time when the exception is raised.
195
+ The added notes appear in the default traceback.
196
+ See :pep: `678 ` for more details.
197
+ (Contributed by Irit Katriel in :issue: `45607 `.)
197
198
198
199
199
200
.. _new-feat-related-type-hints-311 :
You can’t perform that action at this time.
0 commit comments