From da310715f44263e6509cfc93f058dedbb92a7379 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 9 May 2017 13:40:00 -0700 Subject: [PATCH] more exceptions --- src/objects/exc.rs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/objects/exc.rs b/src/objects/exc.rs index 0d12b51c..805a3e20 100644 --- a/src/objects/exc.rs +++ b/src/objects/exc.rs @@ -108,7 +108,33 @@ exc_type!(BufferError, PyExc_BufferError); #[cfg(Py_3_4)] exc_type!(BlockingIOError, PyExc_BlockingIOError); #[cfg(Py_3_4)] +exc_type!(BrokenPipeError, PyExc_BrokenPipeError); +#[cfg(Py_3_4)] +exc_type!(ChildProcessError, PyExc_ChildProcessError); +#[cfg(Py_3_4)] +exc_type!(ConnectionError, PyExc_ConnectionError); +#[cfg(Py_3_4)] +exc_type!(ConnectionAbortedError, PyExc_ConnectionAbortedError); +#[cfg(Py_3_4)] +exc_type!(ConnectionRefusedError, PyExc_ConnectionRefusedError); +#[cfg(Py_3_4)] +exc_type!(ConnectionResetError, PyExc_ConnectionResetError); +#[cfg(Py_3_4)] +exc_type!(FileExistsError, PyExc_FileExistsError); +#[cfg(Py_3_4)] +exc_type!(FileNotFoundError, PyExc_FileNotFoundError); +#[cfg(Py_3_4)] exc_type!(InterruptedError, PyExc_InterruptedError); +#[cfg(Py_3_4)] +exc_type!(IsADirectoryError, PyExc_IsADirectoryError); +#[cfg(Py_3_4)] +exc_type!(NotADirectoryError, PyExc_NotADirectoryError); +#[cfg(Py_3_4)] +exc_type!(PermissionError, PyExc_PermissionError); +#[cfg(Py_3_4)] +exc_type!(ProcessLookupError, PyExc_ProcessLookupError); +#[cfg(Py_3_4)] +exc_type!(TimeoutError, PyExc_TimeoutError); exc_type!(UnicodeDecodeError, PyExc_UnicodeDecodeError); exc_type!(UnicodeEncodeError, PyExc_UnicodeEncodeError);