Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
abe7c1a4
Kaydet (Commit)
abe7c1a4
authored
Tem 02, 2002
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor markup adjustments, consistency changes, and shorten a long
line.
üst
7c1bb9c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
exceptions.tex
Doc/api/exceptions.tex
+13
-12
No files found.
Doc/api/exceptions.tex
Dosyayı görüntüle @
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