Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c2c3d3

Browse files
committed
Update the documentation to reflect the changes to ReferenceError.
1 parent df5cfd8 commit 8c2c3d3

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

Doc/lib/libexcs.tex

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,17 @@ \section{Built-in Exceptions}
237237
typical applications prefer to drop bits than raise an exception.
238238
\end{excdesc}
239239

240+
\begin{excdesc}{ReferenceError}
241+
This exception is raised when a weak reference proxy, created by the
242+
\function{\refmodule{weakref}.proxy()} function, is used to access
243+
an attribute of the referent after it has been garbage collected.
244+
For more information on weak references, see the \refmodule{weakref}
245+
module.
246+
\versionadded[Previously known as the
247+
\exception{\refmodule{weakref}.ReferenceError}
248+
exception]{2.2}
249+
\end{excdesc}
250+
240251
\begin{excdesc}{RuntimeError}
241252
Raised when an error is detected that doesn't fall in any of the
242253
other categories. The associated value is a string indicating what

Doc/lib/libweakref.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,8 @@ \section{\module{weakref} ---
111111

112112
\begin{excdesc}{ReferenceError}
113113
Exception raised when a proxy object is used but the underlying
114-
object has been collected.
114+
object has been collected. This is the same as the standard
115+
\exception{ReferenceError} exception.
115116
\end{excdesc}
116117

117118

0 commit comments

Comments
 (0)