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.UnexpectedBodyError</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 UnexpectedBodyError 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.UnexpectedBodyError-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 UnexpectedBodyError</h1><p class="nomargin-top"><span class="codelink"><a href="googleapiclient.errors-pysrc.html#UnexpectedBodyError">source code</a></span></p> 60<center> 61<center> <map id="uml_class_diagram_for_googleap_19" name="uml_class_diagram_for_googleap_19"> 62<area shape="rect" id="node1_14" href="googleapiclient.errors.UnexpectedBodyError-class.html#__init__" title="Constructor for an UnexpectedMethodError." alt="" coords="18,469,217,489"/> 63<area shape="rect" id="node1" href="googleapiclient.errors.UnexpectedBodyError-class.html" title="Exception raised by RequestMockBuilder on unexpected bodies." alt="" coords="5,437,228,496"/> 64<area shape="rect" id="node2" href="googleapiclient.errors.Error-class.html" title="Base error for this module." alt="" coords="91,375,145,419"/> 65<area shape="rect" id="node3_15" href="javascript:void(0);" title="exceptions.BaseException.args" alt="" coords="39,30,195,50"/> 66<area shape="rect" id="node3_16" href="javascript:void(0);" title="exceptions.BaseException.message" alt="" coords="39,50,195,70"/> 67<area shape="rect" id="node3_17" href="javascript:void(0);" title="x.__delattr__('name') <==> del x.name" alt="" coords="39,73,195,93"/> 68<area shape="rect" id="node3_18" href="javascript:void(0);" title="x.__getattribute__('name') <==> x.name" alt="" coords="39,93,195,113"/> 69<area shape="rect" id="node3_19" href="javascript:void(0);" title="x[y]" alt="" coords="39,113,195,133"/> 70<area shape="rect" id="node3_20" href="javascript:void(0);" title="x[i:j]" alt="" coords="39,133,195,153"/> 71<area shape="rect" id="node3_21" href="javascript:void(0);" title="helper for pickle" alt="" coords="39,153,195,173"/> 72<area shape="rect" id="node3_22" href="javascript:void(0);" title="repr(x)" alt="" coords="39,173,195,193"/> 73<area shape="rect" id="node3_23" href="javascript:void(0);" title="x.__setattr__('name', value) <==> x.name = value" alt="" coords="39,193,195,213"/> 74<area shape="rect" id="node3_24" href="javascript:void(0);" title="exceptions.BaseException.__setstate__" alt="" coords="39,213,195,233"/> 75<area shape="rect" id="node3_25" href="javascript:void(0);" title="str(x)" alt="" coords="39,233,195,253"/> 76<area shape="rect" id="node3_26" href="javascript:void(0);" title="exceptions.BaseException.__unicode__" alt="" coords="39,253,195,273"/> 77<area shape="rect" id="node3" href="javascript:void(0);" title="Common base class for all exceptions" alt="" coords="27,5,207,279"/> 78<area shape="rect" id="node4_27" href="javascript:void(0);" title="exceptions.Exception.__new__" alt="" coords="55,329,181,349"/> 79<area shape="rect" id="node4" href="javascript:void(0);" title="Common base class for all non-exit exceptions." alt="" coords="43,297,193,356"/> 80</map> 81 <img src="uml_class_diagram_for_googleap_19.gif" alt='' usemap="#uml_class_diagram_for_googleap_19" ismap="ismap" class="graph-without-title" /> 82</center> 83</center> 84<hr /> 85<pre class="literalblock"> 86Exception raised by RequestMockBuilder on unexpected bodies. 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"> </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.UnexpectedBodyError-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>, 114 <span class="summary-sig-arg">expected</span>, 115 <span class="summary-sig-arg">provided</span>)</span><br /> 116 Constructor for an UnexpectedMethodError.</td> 117 <td align="right" valign="top"> 118 <span class="codelink"><a href="googleapiclient.errors-pysrc.html#UnexpectedBodyError.__init__">source code</a></span> 119 120 </td> 121 </tr> 122 </table> 123 124 </td> 125 </tr> 126 <tr> 127 <td colspan="2" class="summary"> 128 <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.Exception</code></b>: 129 <code>__new__</code> 130 </p> 131 <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>: 132 <code>__delattr__</code>, 133 <code>__getattribute__</code>, 134 <code>__getitem__</code>, 135 <code>__getslice__</code>, 136 <code>__reduce__</code>, 137 <code>__repr__</code>, 138 <code>__setattr__</code>, 139 <code>__setstate__</code>, 140 <code>__str__</code>, 141 <code>__unicode__</code> 142 </p> 143 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 144 <code>__format__</code>, 145 <code>__hash__</code>, 146 <code>__reduce_ex__</code>, 147 <code>__sizeof__</code>, 148 <code>__subclasshook__</code> 149 </p> 150 </td> 151 </tr> 152</table> 153<!-- ==================== PROPERTIES ==================== --> 154<a name="section-Properties"></a> 155<table class="summary" border="1" cellpadding="3" 156 cellspacing="0" width="100%" bgcolor="white"> 157<tr bgcolor="#70b0f0" class="table-header"> 158 <td colspan="2" class="table-header"> 159 <table border="0" cellpadding="0" cellspacing="0" width="100%"> 160 <tr valign="top"> 161 <td align="left"><span class="table-header">Properties</span></td> 162 <td align="right" valign="top" 163 ><span class="options">[<a href="#section-Properties" 164 class="privatelink" onclick="toggle_private();" 165 >hide private</a>]</span></td> 166 </tr> 167 </table> 168 </td> 169</tr> 170 <tr> 171 <td colspan="2" class="summary"> 172 <p class="indent-wrapped-lines"><b>Inherited from <code>exceptions.BaseException</code></b>: 173 <code>args</code>, 174 <code>message</code> 175 </p> 176 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>: 177 <code>__class__</code> 178 </p> 179 </td> 180 </tr> 181</table> 182<!-- ==================== METHOD DETAILS ==================== --> 183<a name="section-MethodDetails"></a> 184<table class="details" 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">Method Details</span></td> 191 <td align="right" valign="top" 192 ><span class="options">[<a href="#section-MethodDetails" 193 class="privatelink" onclick="toggle_private();" 194 >hide private</a>]</span></td> 195 </tr> 196 </table> 197 </td> 198</tr> 199</table> 200<a name="__init__"></a> 201<div> 202<table class="details" border="1" cellpadding="3" 203 cellspacing="0" width="100%" bgcolor="white"> 204<tr><td> 205 <table width="100%" cellpadding="0" cellspacing="0" border="0"> 206 <tr valign="top"><td> 207 <h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>, 208 <span class="sig-arg">expected</span>, 209 <span class="sig-arg">provided</span>)</span> 210 <br /><em class="fname">(Constructor)</em> 211 </h3> 212 </td><td align="right" valign="top" 213 ><span class="codelink"><a href="googleapiclient.errors-pysrc.html#UnexpectedBodyError.__init__">source code</a></span> 214 </td> 215 </tr></table> 216 217 <pre class="literalblock"> 218Constructor for an UnexpectedMethodError. 219 220</pre> 221 <dl class="fields"> 222 <dt>Overrides: 223 object.__init__ 224 </dt> 225 </dl> 226</td></tr></table> 227</div> 228<br /> 229<!-- ==================== NAVIGATION BAR ==================== --> 230<table class="navbar" border="0" width="100%" cellpadding="0" 231 bgcolor="#a0c0ff" cellspacing="0"> 232 <tr valign="middle"> 233 <!-- Home link --> 234 <th> <a 235 href="googleapiclient-module.html">Home</a> </th> 236 237 <!-- Tree link --> 238 <th> <a 239 href="module-tree.html">Trees</a> </th> 240 241 <!-- Index link --> 242 <th> <a 243 href="identifier-index.html">Indices</a> </th> 244 245 <!-- Help link --> 246 <th> <a 247 href="help.html">Help</a> </th> 248 249 <th class="navbar" width="100%"></th> 250 </tr> 251</table> 252<table border="0" cellpadding="0" cellspacing="0" width="100%%"> 253 <tr> 254 <td align="left" class="footer"> 255 Generated by Epydoc 3.0.1 on Fri Jun 14 15:57:28 2019 256 </td> 257 <td align="right" class="footer"> 258 <a target="mainFrame" href="http://epydoc.sourceforge.net" 259 >http://epydoc.sourceforge.net</a> 260 </td> 261 </tr> 262</table> 263 264<script type="text/javascript"> 265 <!-- 266 // Private objects are initially displayed (because if 267 // javascript is turned off then we want them to be 268 // visible); but by default, we want to hide them. So hide 269 // them unless we have a cookie that says to show them. 270 checkCookie(); 271 // --> 272</script> 273</body> 274</html> 275