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