blob: 9c8345e3b3449cf2ac87713f5ea2565551bcbc30 [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001<!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"
20border="0" height="32"
21 alt="Previous Page" width="32"></A></td>
22<td><A href="internals.html"><img src="up.gif"
23border="0" height="32"
24 alt="Up One Level" width="32"></A></td>
25<td><A href="callbacks.html"><img src="next.gif"
26border="0" height="32"
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"
30border="0" height="32"
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">&nbsp;</A>
47<BR>
484.1 Exceptions
49</H2>
50<P>
51<EM><EM><EM>We realized early that most of the exceptions would be raised by the I/O
52functions of OpenSSL, so it felt natural to mimic OpenSSL's error code system,
53translating them into Python exceptions. This naturally gives us the exceptions
54<tt class="exception">SSL.ZeroReturnError</tt>, <tt class="exception">SSL.WantReadError</tt>,
55<tt class="exception">SSL.WantWriteError</tt>, <tt class="exception">SSL.WantX509LookupError</tt> and
56<tt class="exception">SSL.SysCallError</tt>.
57</EM></EM></EM>
58<P>
59<EM><EM><EM>For more information about this, see section <A href="openssl-ssl.html#openssl-ssl">3.3</A>.
60</EM></EM></EM>
61<P>
62
63<DIV CLASS="navigation">
64<p><hr>
65<table align="center" width="100%" cellpadding="0" cellspacing="2">
66<tr>
67<td><A href="internals.html"><img src="previous.gif"
68border="0" height="32"
69 alt="Previous Page" width="32"></A></td>
70<td><A href="internals.html"><img src="up.gif"
71border="0" height="32"
72 alt="Up One Level" width="32"></A></td>
73<td><A href="callbacks.html"><img src="next.gif"
74border="0" height="32"
75 alt="Next Page" width="32"></A></td>
76<td align="center" width="100%">Python OpenSSL Manual</td>
77<td><A href="contents.html"><img src="contents.gif"
78border="0" height="32"
79 alt="Contents" width="32"></A></td>
80<td><img src="blank.gif"
81 border="0" height="32"
82 alt="" width="32"></td>
83<td><img src="blank.gif"
84 border="0" height="32"
85 alt="" width="32"></td>
86</tr></table>
87<b class="navlabel">Previous:</b> <a class="sectref" href="internals.html">4 Internals</A>
88<b class="navlabel">Up:</b> <a class="sectref" href="internals.html">4 Internals</A>
89<b class="navlabel">Next:</b> <a class="sectref" href="callbacks.html">4.2 Callbacks</A>
90<hr>
91<span class="release-info">Release 0.6.</span>
92</DIV>
93<!--End of Navigation Panel-->
94
95</BODY>
96</HTML>