1<?xml version="1.0" encoding="ascii"?>
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">
5<head>
6  <title>googleapiclient.errors.HttpError</title>
7  <link rel="stylesheet" href="epydoc.css" type="text/css" />
8  <script type="text/javascript" src="epydoc.js"></script>
9</head>
10
11<body bgcolor="white" text="black" link="blue" vlink="#204080"
12      alink="#204080">
13<!-- ==================== NAVIGATION BAR ==================== -->
14<table class="navbar" border="0" width="100%" cellpadding="0"
15       bgcolor="#a0c0ff" cellspacing="0">
16  <tr valign="middle">
17  <!-- Home link -->
18      <th>&nbsp;&nbsp;&nbsp;<a
19        href="googleapiclient-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
20
21  <!-- Tree link -->
22      <th>&nbsp;&nbsp;&nbsp;<a
23        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
24
25  <!-- Index link -->
26      <th>&nbsp;&nbsp;&nbsp;<a
27        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
28
29  <!-- Help link -->
30      <th>&nbsp;&nbsp;&nbsp;<a
31        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
32
33      <th class="navbar" width="100%"></th>
34  </tr>
35</table>
36<table width="100%" cellpadding="0" cellspacing="0">
37  <tr valign="top">
38    <td width="100%">
39      <span class="breadcrumbs">
40        <a href="googleapiclient-module.html">Package&nbsp;googleapiclient</a> ::
41        <a href="googleapiclient.errors-module.html">Module&nbsp;errors</a> ::
42        Class&nbsp;HttpError
43      </span>
44    </td>
45    <td>
46      <table cellpadding="0" cellspacing="0">
47        <!-- hide/show private -->
48        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
49    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
50        <tr><td align="right"><span class="options"
51            >[<a href="frames.html" target="_top">frames</a
52            >]&nbsp;|&nbsp;<a href="googleapiclient.errors.HttpError-class.html"
53            target="_top">no&nbsp;frames</a>]</span></td></tr>
54      </table>
55    </td>
56  </tr>
57</table>
58<!-- ==================== CLASS DESCRIPTION ==================== -->
59<h1 class="epydoc">Class HttpError</h1><p class="nomargin-top"><span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError">source&nbsp;code</a></span></p>
60<center>
61<center>  <map id="uml_class_diagram_for_googleap_12" name="uml_class_diagram_for_googleap_12">
62<area shape="rect" id="node1_14" href="googleapiclient.errors.HttpError-class.html#__init__" title="x.__init__(...) initializes x; see help(type(x)) for signature" alt="" coords="18,429,243,449"/>
63<area shape="rect" id="node1_15" href="googleapiclient.errors.HttpError-class.html#__repr__" title="str(x)" alt="" coords="18,449,243,469"/>
64<area shape="rect" id="node1_16" href="googleapiclient.errors.HttpError-class.html#__str__" title="str(x)" alt="" coords="18,469,243,489"/>
65<area shape="rect" id="node1" href="googleapiclient.errors.HttpError-class.html" title="HTTP data was invalid or unexpected." alt="" coords="5,397,255,496"/>
66<area shape="rect" id="node2" href="googleapiclient.errors.Error-class.html" title="Base error for this module." alt="" coords="105,335,158,379"/>
67<area shape="rect" id="node3_17" href="javascript:void(0);" title="exceptions.BaseException.args" alt="" coords="53,30,209,50"/>
68<area shape="rect" id="node3_18" href="javascript:void(0);" title="exceptions.BaseException.message" alt="" coords="53,50,209,70"/>
69<area shape="rect" id="node3_19" href="javascript:void(0);" title="x.__delattr__(&#39;name&#39;) &lt;==&gt; del x.name" alt="" coords="53,73,209,93"/>
70<area shape="rect" id="node3_20" href="javascript:void(0);" title="x.__getattribute__(&#39;name&#39;) &lt;==&gt; x.name" alt="" coords="53,93,209,113"/>
71<area shape="rect" id="node3_21" href="javascript:void(0);" title="x[y]" alt="" coords="53,113,209,133"/>
72<area shape="rect" id="node3_22" href="javascript:void(0);" title="x[i:j]" alt="" coords="53,133,209,153"/>
73<area shape="rect" id="node3_23" href="javascript:void(0);" title="helper for pickle" alt="" coords="53,153,209,173"/>
74<area shape="rect" id="node3_24" href="javascript:void(0);" title="x.__setattr__(&#39;name&#39;, value) &lt;==&gt; x.name = value" alt="" coords="53,173,209,193"/>
75<area shape="rect" id="node3_25" href="javascript:void(0);" title="exceptions.BaseException.__setstate__" alt="" coords="53,193,209,213"/>
76<area shape="rect" id="node3_26" href="javascript:void(0);" title="exceptions.BaseException.__unicode__" alt="" coords="53,213,209,233"/>
77<area shape="rect" id="node3" href="javascript:void(0);" title="Common base class for all exceptions" alt="" coords="40,5,220,239"/>
78<area shape="rect" id="node4_27" href="javascript:void(0);" title="exceptions.Exception.__new__" alt="" coords="69,289,194,309"/>
79<area shape="rect" id="node4" href="javascript:void(0);" title="Common base class for all non&#45;exit exceptions." alt="" coords="57,257,206,316"/>
80</map>
81  <img src="uml_class_diagram_for_googleap_12.gif" alt='' usemap="#uml_class_diagram_for_googleap_12" ismap="ismap" class="graph-without-title" />
82</center>
83</center>
84<hr />
85<pre class="literalblock">
86HTTP data was invalid or unexpected.
87
88</pre>
89
90<!-- ==================== INSTANCE METHODS ==================== -->
91<a name="section-InstanceMethods"></a>
92<table class="summary" border="1" cellpadding="3"
93       cellspacing="0" width="100%" bgcolor="white">
94<tr bgcolor="#70b0f0" class="table-header">
95  <td colspan="2" class="table-header">
96    <table border="0" cellpadding="0" cellspacing="0" width="100%">
97      <tr valign="top">
98        <td align="left"><span class="table-header">Instance Methods</span></td>
99        <td align="right" valign="top"
100         ><span class="options">[<a href="#section-InstanceMethods"
101         class="privatelink" onclick="toggle_private();"
102         >hide private</a>]</span></td>
103      </tr>
104    </table>
105  </td>
106</tr>
107<tr>
108    <td width="15%" align="right" valign="top" class="summary">
109      <span class="summary-type">&nbsp;</span>
110    </td><td class="summary">
111      <table width="100%" cellpadding="0" cellspacing="0" border="0">
112        <tr>
113          <td><span class="summary-sig"><a href="googleapiclient.errors.HttpError-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
114        <span class="summary-sig-arg">resp</span>,
115        <span class="summary-sig-arg">content</span>,
116        <span class="summary-sig-arg">uri</span>=<span class="summary-sig-default">None</span>)</span><br />
117      x.__init__(...) initializes x; see help(type(x)) for signature</td>
118          <td align="right" valign="top">
119            <span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError.__init__">source&nbsp;code</a></span>
120
121          </td>
122        </tr>
123      </table>
124
125    </td>
126  </tr>
127<tr class="private">
128    <td width="15%" align="right" valign="top" class="summary">
129      <span class="summary-type">&nbsp;</span>
130    </td><td class="summary">
131      <table width="100%" cellpadding="0" cellspacing="0" border="0">
132        <tr>
133          <td><span class="summary-sig"><a name="_get_reason"></a><span class="summary-sig-name">_get_reason</span>(<span class="summary-sig-arg">self</span>)</span><br />
134      Calculate the reason for the error from the response content.</td>
135          <td align="right" valign="top">
136            <span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError._get_reason">source&nbsp;code</a></span>
137
138          </td>
139        </tr>
140      </table>
141
142    </td>
143  </tr>
144<tr>
145    <td width="15%" align="right" valign="top" class="summary">
146      <span class="summary-type">&nbsp;</span>
147    </td><td class="summary">
148      <table width="100%" cellpadding="0" cellspacing="0" border="0">
149        <tr>
150          <td><span class="summary-sig"><a href="googleapiclient.errors.HttpError-class.html#__repr__" class="summary-sig-name">__repr__</a>(<span class="summary-sig-arg">self</span>)</span><br />
151      str(x)</td>
152          <td align="right" valign="top">
153            <span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError.__repr__">source&nbsp;code</a></span>
154
155          </td>
156        </tr>
157      </table>
158
159    </td>
160  </tr>
161<tr>
162    <td width="15%" align="right" valign="top" class="summary">
163      <span class="summary-type">&nbsp;</span>
164    </td><td class="summary">
165      <table width="100%" cellpadding="0" cellspacing="0" border="0">
166        <tr>
167          <td><span class="summary-sig"><a href="googleapiclient.errors.HttpError-class.html#__str__" class="summary-sig-name">__str__</a>(<span class="summary-sig-arg">self</span>)</span><br />
168      str(x)</td>
169          <td align="right" valign="top">
170            <span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError.__repr__">source&nbsp;code</a></span>
171
172          </td>
173        </tr>
174      </table>
175
176    </td>
177  </tr>
178  <tr>
179    <td colspan="2" class="summary">
180    <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.Exception</code></b>:
181      <code>__new__</code>
182      </p>
183    <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>:
184      <code>__delattr__</code>,
185      <code>__getattribute__</code>,
186      <code>__getitem__</code>,
187      <code>__getslice__</code>,
188      <code>__reduce__</code>,
189      <code>__setattr__</code>,
190      <code>__setstate__</code>,
191      <code>__unicode__</code>
192      </p>
193    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
194      <code>__format__</code>,
195      <code>__hash__</code>,
196      <code>__reduce_ex__</code>,
197      <code>__sizeof__</code>,
198      <code>__subclasshook__</code>
199      </p>
200    </td>
201  </tr>
202</table>
203<!-- ==================== PROPERTIES ==================== -->
204<a name="section-Properties"></a>
205<table class="summary" border="1" cellpadding="3"
206       cellspacing="0" width="100%" bgcolor="white">
207<tr bgcolor="#70b0f0" class="table-header">
208  <td colspan="2" class="table-header">
209    <table border="0" cellpadding="0" cellspacing="0" width="100%">
210      <tr valign="top">
211        <td align="left"><span class="table-header">Properties</span></td>
212        <td align="right" valign="top"
213         ><span class="options">[<a href="#section-Properties"
214         class="privatelink" onclick="toggle_private();"
215         >hide private</a>]</span></td>
216      </tr>
217    </table>
218  </td>
219</tr>
220  <tr>
221    <td colspan="2" class="summary">
222    <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>:
223      <code>args</code>,
224      <code>message</code>
225      </p>
226    <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
227      <code>__class__</code>
228      </p>
229    </td>
230  </tr>
231</table>
232<!-- ==================== METHOD DETAILS ==================== -->
233<a name="section-MethodDetails"></a>
234<table class="details" border="1" cellpadding="3"
235       cellspacing="0" width="100%" bgcolor="white">
236<tr bgcolor="#70b0f0" class="table-header">
237  <td colspan="2" class="table-header">
238    <table border="0" cellpadding="0" cellspacing="0" width="100%">
239      <tr valign="top">
240        <td align="left"><span class="table-header">Method Details</span></td>
241        <td align="right" valign="top"
242         ><span class="options">[<a href="#section-MethodDetails"
243         class="privatelink" onclick="toggle_private();"
244         >hide private</a>]</span></td>
245      </tr>
246    </table>
247  </td>
248</tr>
249</table>
250<a name="__init__"></a>
251<div>
252<table class="details" border="1" cellpadding="3"
253       cellspacing="0" width="100%" bgcolor="white">
254<tr><td>
255  <table width="100%" cellpadding="0" cellspacing="0" border="0">
256  <tr valign="top"><td>
257  <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
258        <span class="sig-arg">resp</span>,
259        <span class="sig-arg">content</span>,
260        <span class="sig-arg">uri</span>=<span class="sig-default">None</span>)</span>
261    <br /><em class="fname">(Constructor)</em>
262  </h3>
263  </td><td align="right" valign="top"
264    ><span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError.__init__">source&nbsp;code</a></span>&nbsp;
265    </td>
266  </tr></table>
267
268  <pre class="literalblock">
269x.__init__(...) initializes x; see help(type(x)) for signature
270
271</pre>
272  <dl class="fields">
273    <dt>Decorators:</dt>
274    <dd><ul class="nomargin-top">
275        <li><code>@util.positional(3)</code></li>
276    </ul></dd>
277    <dt>Overrides:
278        object.__init__
279        <dd><em class="note">(inherited documentation)</em></dd>
280    </dt>
281  </dl>
282</td></tr></table>
283</div>
284<a name="__repr__"></a>
285<div>
286<table class="details" border="1" cellpadding="3"
287       cellspacing="0" width="100%" bgcolor="white">
288<tr><td>
289  <table width="100%" cellpadding="0" cellspacing="0" border="0">
290  <tr valign="top"><td>
291  <h3 class="epydoc"><span class="sig"><span class="sig-name">__repr__</span>(<span class="sig-arg">self</span>)</span>
292    <br /><em class="fname">(Representation operator)</em>
293  </h3>
294  </td><td align="right" valign="top"
295    ><span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError.__repr__">source&nbsp;code</a></span>&nbsp;
296    </td>
297  </tr></table>
298
299  <pre class="literalblock">
300str(x)
301
302</pre>
303  <dl class="fields">
304    <dt>Overrides:
305        object.__repr__
306        <dd><em class="note">(inherited documentation)</em></dd>
307    </dt>
308  </dl>
309</td></tr></table>
310</div>
311<a name="__str__"></a>
312<div>
313<table class="details" border="1" cellpadding="3"
314       cellspacing="0" width="100%" bgcolor="white">
315<tr><td>
316  <table width="100%" cellpadding="0" cellspacing="0" border="0">
317  <tr valign="top"><td>
318  <h3 class="epydoc"><span class="sig"><span class="sig-name">__str__</span>(<span class="sig-arg">self</span>)</span>
319    <br /><em class="fname">(Informal representation operator)</em>
320  </h3>
321  </td><td align="right" valign="top"
322    ><span class="codelink"><a href="googleapiclient.errors-pysrc.html#HttpError.__repr__">source&nbsp;code</a></span>&nbsp;
323    </td>
324  </tr></table>
325
326  <pre class="literalblock">
327str(x)
328
329</pre>
330  <dl class="fields">
331    <dt>Overrides:
332        object.__str__
333        <dd><em class="note">(inherited documentation)</em></dd>
334    </dt>
335  </dl>
336</td></tr></table>
337</div>
338<br />
339<!-- ==================== NAVIGATION BAR ==================== -->
340<table class="navbar" border="0" width="100%" cellpadding="0"
341       bgcolor="#a0c0ff" cellspacing="0">
342  <tr valign="middle">
343  <!-- Home link -->
344      <th>&nbsp;&nbsp;&nbsp;<a
345        href="googleapiclient-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>
346
347  <!-- Tree link -->
348      <th>&nbsp;&nbsp;&nbsp;<a
349        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>
350
351  <!-- Index link -->
352      <th>&nbsp;&nbsp;&nbsp;<a
353        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>
354
355  <!-- Help link -->
356      <th>&nbsp;&nbsp;&nbsp;<a
357        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>
358
359      <th class="navbar" width="100%"></th>
360  </tr>
361</table>
362<table border="0" cellpadding="0" cellspacing="0" width="100%%">
363  <tr>
364    <td align="left" class="footer">
365    Generated by Epydoc 3.0.1 on Fri Jun 14 15:57:27 2019
366    </td>
367    <td align="right" class="footer">
368      <a target="mainFrame" href="http://epydoc.sourceforge.net"
369        >http://epydoc.sourceforge.net</a>
370    </td>
371  </tr>
372</table>
373
374<script type="text/javascript">
375  <!--
376  // Private objects are initially displayed (because if
377  // javascript is turned off then we want them to be
378  // visible); but by default, we want to hide them.  So hide
379  // them unless we have a cookie that says to show them.
380  checkCookie();
381  // -->
382</script>
383</body>
384</html>
385