Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
abe7c1a4
Commit
abe7c1a4
authored
Jul 02, 2002
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor markup adjustments, consistency changes, and shorten a long
line.
parent
7c1bb9c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
Doc/api/exceptions.tex
Doc/api/exceptions.tex
+13
-12
No files found.
Doc/api/exceptions.tex
View file @
abe7c1a4
...
...
@@ -194,26 +194,27 @@ for each thread.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyErr
_
SetFromWindowsErr
}{
int ierr
}
This is a convenience function to raise
\exception
{
PyExc
_
WindowsError
}
. If called with
\var
{
ierr
}
of
\cdata
{
0
}
, the error code returned by a call to
\cfunction
{
GetLastError()
}
is used instead. It calls the win32
function
\cfunction
{
FormatMessage()
}
to retrieve the Windows
description of error code
\var
{
ierr
}
, then it constructs a tuple object
whose first item is the integer
\cdata
{
ierr
}
value and whose second
item is the
corresponding error message (gotten from
This is a convenience function to raise
\exception
{
WindowsError
}
.
If called with
\var
{
ierr
}
of
\cdata
{
0
}
, the error code returned by a
call to
\cfunction
{
GetLastError()
}
is used instead. It calls the
Win32 function
\cfunction
{
FormatMessage()
}
to retrieve the Windows
description of error code given by
\var
{
ierr
}
or
\cfunction
{
GetLastError()
}
, then it constructs a tuple object whose
first item is the
\var
{
ierr
}
value and whose second item is the
corresponding error message (gotten from
\cfunction
{
FormatMessage()
}
), and then calls
\samp
{
PyErr
_
SetObject(
\var
{
PyExc
_
WindowsError
}
,
\var
{
object
}
)
}
.
This function always returns
\NULL
.
This function is only available
on
Windows.
This function always returns
\NULL
.
Availability:
Windows.
\end{cfuncdesc}
\begin{cfuncdesc}
{
PyObject*
}{
PyErr
_
SetFromWindowsErrWithFilename
}{
int ierr,
char *filename
}
char *filename
}
Similar to
\cfunction
{
PyErr
_
SetFromWindowsErr()
}
, with the
additional behavior that if
\var
{
filename
}
is not
\NULL
, it is
passed to the constructor of
\exception
{
WindowsError
}
as a third
parameter. This function is only available on Windows.
parameter.
Availability: Windows.
\end{cfuncdesc}
\begin{cfuncdesc}
{
void
}{
PyErr
_
BadInternalCall
}{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment