1
<?xml version="1.0" encoding="iso-8859-1"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
"DTD/xhtml1-transitional.dtd">
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
<title>twisted.python.failure</title>
7
<link rel="stylesheet" href="epydoc.css" type="text/css"></link>
9
<body bgcolor="white" text="black" link="blue" vlink="#204080"
12
<!-- =========== START OF NAVBAR =========== -->
13
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
15
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
16
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
17
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
18
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
19
<th class="navbar" align="right" width="100%">
20
<table border="0" cellpadding="0" cellspacing="0">
21
<tr><th class="navbar" align="center">
23
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
24
</p></th></tr></table>
28
<table width="100%" cellpadding="0" cellspacing="0">
31
<font size="-1"><b class="breadcrumbs">
32
<a href="twisted.html">Package twisted</a> ::
33
<a href="twisted.python.html">Package python</a> ::
37
<td><table cellpadding="0" cellspacing="0">
38
<tr><td align="right"><font size="-2">[<a href="frames.html"target="_top">frames</a> | <a href="twisted.python.failure.html" target="_top">no frames</a>]</font></td></tr>
42
<!-- =========== START OF MODULE DESCRIPTION =========== -->
43
<h2 class="module">Module twisted.python.failure</h2>
45
<p>Asynchronous-friendly error mechanism.</p>
46
See <a href="twisted.python.failure.Failure.html"
47
class="link"><code>Failure</code></a>.
50
<!-- =========== START OF CLASSES =========== -->
51
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
52
<tr bgcolor="#70b0f0" class="summary">
53
<th colspan="2">Classes</th></tr>
55
<b><a href="twisted.python.failure.Failure.html"><code>Failure</code></a></b></td>
56
<td>A basic abstraction for an error that has occurred.</td></tr>
60
<!-- =========== START OF EXCEPTIONS =========== -->
61
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
62
<tr bgcolor="#70b0f0" class="summary">
63
<th colspan="2">Exceptions</th></tr>
65
<b><a href="twisted.python.failure.DefaultException.html"><code>DefaultException</code></a></b></td>
70
<!-- =========== START OF FUNCTION SUMMARY =========== -->
71
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
72
<tr bgcolor="#70b0f0" class="summary">
73
<th colspan="2">Function Summary</th></tr>
74
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
75
<td><code><a name="_debuginit"></a><span class="summary-sig"><span class="summary-sig-name">_debuginit</span>(<span class=summary-sig-arg>self</span>,
76
<span class=summary-sig-arg>exc_value</span>,
77
<span class=summary-sig-arg>exc_type</span>,
78
<span class=summary-sig-arg>exc_tb</span>,
79
<span class=summary-sig-arg>Failure__init__</span>)</span></code>
81
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
82
<td><code><span class="summary-sig"><a href="twisted.python.failure.html#format_frames" class="summary-sig-name"><code>format_frames</code></a>(<span class=summary-sig-arg>frames</span>,
83
<span class=summary-sig-arg>write</span>,
84
<span class=summary-sig-arg>detail</span>)</span></code>
86
Format and write frames.</td></tr>
87
<tr><td align="right" valign="top" width="15%"><font size="-1"> </font></td>
88
<td><code><span class="summary-sig"><a href="twisted.python.failure.html#startDebugMode" class="summary-sig-name"><code>startDebugMode</code></a>()</span></code>
90
Enable debug hooks for Failures.</td></tr>
94
<!-- =========== START OF VARIABLE SUMMARY =========== -->
95
<table class="summary" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
96
<tr bgcolor="#70b0f0" class="summary">
97
<th colspan="2">Variable Summary</th></tr>
98
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
99
<td><b><a href="twisted.python.failure.html#count"><code>count</code></a></b> = <span title="10">10 </span></td></tr>
100
<tr><td align="right" valign="top" width="15%"><font size="-1"><code>int</code></font></td>
101
<td><b><a href="twisted.python.failure.html#traceupLength"><code>traceupLength</code></a></b> = <span title="4">4 </span></td></tr>
105
<!-- =========== START OF FUNCTION DETAILS =========== -->
106
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
107
<tr bgcolor="#70b0f0" class="details">
108
<th colspan="2">Function Details</th></tr>
111
<a name="format_frames"></a>
112
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
113
<h3><span class="sig"><span class="sig-name">format_frames</span>(<span class=sig-arg>frames</span>,
114
<span class=sig-arg>write</span>,
115
<span class=sig-arg>detail</span>=<span class=sig-default>'default'</span>)</span>
117
Format and write frames.
119
<dl><dt><b>Parameters:</b></dt>
120
<dd><code><b>frames</b></code> -
121
is a list of frames as used by Failure.frames, with each frame
122
being a list of (funcName, fileName, lineNumber, locals.items(),
124
<br /><i>
126
<dd><code><b>write</b></code> -
127
this will be called with formatted strings.
128
<br /><i>
130
<dd><code><b>detail</b></code> -
131
Three detail levels are available: default, brief, and
133
<br /><i>
140
<a name="startDebugMode"></a>
141
<table width="100%" class="func-details" bgcolor="#e0e0e0"><tr><td>
142
<h3><span class="sig"><span class="sig-name">startDebugMode</span>()</span>
144
Enable debug hooks for Failures.
151
<!-- =========== START OF VARIABLE DETAILS =========== -->
152
<table class="details" border="1" cellpadding="3" cellspacing="0" width="100%" bgcolor="white">
153
<tr bgcolor="#70b0f0" class="details">
154
<th colspan="2">Variable Details</th></tr>
156
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
163
<dt><b>Type:</b></dt>
168
<span title="10"> <dt><b>Value:</b></dt>
170
<pre class="variable">
171
10 </pre>
172
</td></tr></table></dd>
175
</dl></td></tr></table>
176
<table width="100%" class="var-details" bgcolor="#e0e0e0"><tr><td>
177
<a name="traceupLength"></a>
178
<h3>traceupLength</h3>
183
<dt><b>Type:</b></dt>
188
<span title="4"> <dt><b>Value:</b></dt>
190
<pre class="variable">
191
4 </pre>
192
</td></tr></table></dd>
195
</dl></td></tr></table>
199
<!-- =========== START OF NAVBAR =========== -->
200
<table class="navbar" border="0" width="100%" cellpadding="0" bgcolor="#a0c0ff" cellspacing="0">
202
<th class="navbar"> <a class="navbar" href="twisted.html">Home</a> </th>
203
<th class="navbar"> <a class="navbar" href="trees.html">Trees</a> </th>
204
<th class="navbar"> <a class="navbar" href="indices.html">Index</a> </th>
205
<th class="navbar"> <a class="navbar" href="help.html">Help</a> </th>
206
<th class="navbar" align="right" width="100%">
207
<table border="0" cellpadding="0" cellspacing="0">
208
<tr><th class="navbar" align="center">
210
<a class="navbar" target="_top" href="http://twistedmatrix.com/">Twisted 1.3.0rc1</a>
211
</p></th></tr></table>
216
<table border="0" cellpadding="0" cellspacing="0" width="100%">
218
<td align="left"><font size="-2">Generated by Epydoc 2.0 on Sat May 15 20:08:13 2004</font></td>
219
<td align="right"><a href="http://epydoc.sourceforge.net"
220
><font size="-2">http://epydoc.sf.net</font></a></td>