Mention GetBaseException in C#.
This commit is contained in:
parent
3d514b0e42
commit
2b1d6dd3c8
|
@ -125,6 +125,8 @@ Rationale
|
|||
argument to set it explicitly. The '__cause__' attribute fulfills
|
||||
the same purpose as InnerException, but this PEP proposes a new form
|
||||
of 'raise' rather than extending the constructors of all exceptions.
|
||||
C# also provides a GetBaseException method that jumps directly to
|
||||
the end of the InnerException chain; this PEP proposes no analog.
|
||||
|
||||
The reason all three of these attributes are presented together in
|
||||
one proposal is that the '__traceback__' attribute provides
|
||||
|
|
Loading…
Reference in New Issue