Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>4.1 Exceptions </title> |
| 5 | <META NAME="description" CONTENT="4.1 Exceptions "> |
| 6 | <META NAME="keywords" CONTENT="pyOpenSSL"> |
| 7 | <META NAME="resource-type" CONTENT="document"> |
| 8 | <META NAME="distribution" CONTENT="global"> |
| 9 | <link rel="STYLESHEET" href="pyOpenSSL.css"> |
| 10 | <LINK REL="next" href="callbacks.html"> |
| 11 | <LINK REL="previous" href="internals.html"> |
| 12 | <LINK REL="up" href="internals.html"> |
| 13 | <LINK REL="next" href="callbacks.html"> |
| 14 | </head> |
| 15 | <body> |
| 16 | <DIV CLASS="navigation"> |
| 17 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 18 | <tr> |
| 19 | <td><A href="internals.html"><img src="previous.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 20 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 21 | alt="Previous Page" width="32"></A></td> |
| 22 | <td><A href="internals.html"><img src="up.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 23 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 24 | alt="Up One Level" width="32"></A></td> |
| 25 | <td><A href="callbacks.html"><img src="next.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 26 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 27 | alt="Next Page" width="32"></A></td> |
| 28 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 29 | <td><A href="contents.html"><img src="contents.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 30 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 31 | alt="Contents" width="32"></A></td> |
| 32 | <td><img src="blank.gif" |
| 33 | border="0" height="32" |
| 34 | alt="" width="32"></td> |
| 35 | <td><img src="blank.gif" |
| 36 | border="0" height="32" |
| 37 | alt="" width="32"></td> |
| 38 | </tr></table> |
| 39 | <b class="navlabel">Previous:</b> <a class="sectref" href="internals.html">4 Internals</A> |
| 40 | <b class="navlabel">Up:</b> <a class="sectref" href="internals.html">4 Internals</A> |
| 41 | <b class="navlabel">Next:</b> <a class="sectref" href="callbacks.html">4.2 Callbacks</A> |
| 42 | <br><hr> |
| 43 | </DIV> |
| 44 | <!--End of Navigation Panel--> |
| 45 | |
| 46 | <H2><A NAME="SECTION000510000000000000000"> </A> |
| 47 | <BR> |
| 48 | 4.1 Exceptions |
| 49 | </H2> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 50 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 51 | <P> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 52 | We realized early that most of the exceptions would be raised by the I/O |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 53 | functions of OpenSSL, so it felt natural to mimic OpenSSL's error code system, |
| 54 | translating them into Python exceptions. This naturally gives us the exceptions |
| 55 | <tt class="exception">SSL.ZeroReturnError</tt>, <tt class="exception">SSL.WantReadError</tt>, |
| 56 | <tt class="exception">SSL.WantWriteError</tt>, <tt class="exception">SSL.WantX509LookupError</tt> and |
| 57 | <tt class="exception">SSL.SysCallError</tt>. |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 58 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 59 | <P> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 60 | For more information about this, see section <A href="openssl-ssl.html#openssl-ssl">3.3</A>. |
| 61 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 62 | <P> |
| 63 | |
| 64 | <DIV CLASS="navigation"> |
| 65 | <p><hr> |
| 66 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 67 | <tr> |
| 68 | <td><A href="internals.html"><img src="previous.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 69 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 70 | alt="Previous Page" width="32"></A></td> |
| 71 | <td><A href="internals.html"><img src="up.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 72 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 73 | alt="Up One Level" width="32"></A></td> |
| 74 | <td><A href="callbacks.html"><img src="next.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 75 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 76 | alt="Next Page" width="32"></A></td> |
| 77 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 78 | <td><A href="contents.html"><img src="contents.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 79 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 80 | alt="Contents" width="32"></A></td> |
| 81 | <td><img src="blank.gif" |
| 82 | border="0" height="32" |
| 83 | alt="" width="32"></td> |
| 84 | <td><img src="blank.gif" |
| 85 | border="0" height="32" |
| 86 | alt="" width="32"></td> |
| 87 | </tr></table> |
| 88 | <b class="navlabel">Previous:</b> <a class="sectref" href="internals.html">4 Internals</A> |
| 89 | <b class="navlabel">Up:</b> <a class="sectref" href="internals.html">4 Internals</A> |
| 90 | <b class="navlabel">Next:</b> <a class="sectref" href="callbacks.html">4.2 Callbacks</A> |
| 91 | <hr> |
Jean-Paul Calderone | 26ebc9e | 2011-04-11 19:57:10 -0400 | [diff] [blame] | 92 | <span class="release-info">Release 0.12.</span> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 93 | </DIV> |
| 94 | <!--End of Navigation Panel--> |
| 95 | |
| 96 | </BODY> |
| 97 | </HTML> |