diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-06 12:48:53 +0000 |
commit | a7d0f82e4815b9a48714f8529ec649fe27e3e541 (patch) | |
tree | 30d11e4d4453251163695dac7ea900d48a2639ae /Python/exceptions.c | |
parent | 41920530042677fd49109bdec2e74e01e45f252c (diff) | |
download | cpython-a7d0f82e4815b9a48714f8529ec649fe27e3e541.tar.gz |
Patch #614055: Support OpenVMS.
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r-- | Python/exceptions.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c index 015d45a758..16b67384cd 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -67,6 +67,7 @@ Exception\n\ | | +-- OSError\n\ | | |\n\ | | +-- WindowsError\n\ + | | +-- VMSError\n\ | |\n\ | +-- EOFError\n\ | +-- RuntimeError\n\ @@ -643,6 +644,11 @@ PyDoc_STRVAR(OSError__doc__, "OS system call failed."); PyDoc_STRVAR(WindowsError__doc__, "MS-Windows OS system call failed."); #endif /* MS_WINDOWS */ +#ifdef __VMS +static char +VMSError__doc__[] = "OpenVMS OS system call failed."; +#endif + PyDoc_STRVAR(EOFError__doc__, "Read beyond end of file."); PyDoc_STRVAR(RuntimeError__doc__, "Unspecified run-time error."); @@ -1599,6 +1605,9 @@ PyObject *PyExc_ZeroDivisionError; #ifdef MS_WINDOWS PyObject *PyExc_WindowsError; #endif +#ifdef __VMS +PyObject *PyExc_VMSError; +#endif /* Pre-computed MemoryError instance. Best to create this as early as * possibly and not wait until a MemoryError is actually raised! @@ -1650,6 +1659,10 @@ static struct { {"WindowsError", &PyExc_WindowsError, &PyExc_OSError, WindowsError__doc__}, #endif /* MS_WINDOWS */ +#ifdef __VMS + {"VMSError", &PyExc_VMSError, &PyExc_OSError, + VMSError__doc__}, +#endif {"EOFError", &PyExc_EOFError, 0, EOFError__doc__}, {"RuntimeError", &PyExc_RuntimeError, 0, RuntimeError__doc__}, {"NotImplementedError", &PyExc_NotImplementedError, |